mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Store MapEditEvent
blocks in a vector (#13071)
This commit is contained in:
committed by
GitHub
parent
5c248c2d7d
commit
d13b12b791
@@ -128,8 +128,7 @@ int LuaVoxelManip::l_write_to_map(lua_State *L)
|
||||
|
||||
MapEditEvent event;
|
||||
event.type = MEET_OTHER;
|
||||
for (const auto &it : modified_blocks)
|
||||
event.modified_blocks.insert(it.first);
|
||||
event.setModifiedBlocks(modified_blocks);
|
||||
map->dispatchEvent(event);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user