mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Store MapEditEvent
blocks in a vector (#13071)
This commit is contained in:
parent
5c248c2d7d
commit
d13b12b791
8 changed files with 21 additions and 29 deletions
|
@ -725,9 +725,7 @@ void *EmergeThread::run()
|
|||
if (!modified_blocks.empty()) {
|
||||
MapEditEvent event;
|
||||
event.type = MEET_OTHER;
|
||||
for (const auto &pair : modified_blocks) {
|
||||
event.modified_blocks.insert(pair.first);
|
||||
}
|
||||
event.setModifiedBlocks(modified_blocks);
|
||||
MutexAutoLock envlock(m_server->m_env_mutex);
|
||||
m_map->dispatchEvent(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue