mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Store MapEditEvent
blocks in a vector (#13071)
This commit is contained in:
committed by
GitHub
parent
5c248c2d7d
commit
d13b12b791
@@ -699,9 +699,7 @@ void Server::AsyncRunStep(bool initial_step)
|
||||
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);
|
||||
m_env->getMap().dispatchEvent(event);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user