1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-31 18:31:04 +00:00

Store MapEditEvent blocks in a vector (#13071)

This commit is contained in:
Jude Melton-Houghton 2022-12-24 12:21:59 -05:00 committed by GitHub
parent 5c248c2d7d
commit d13b12b791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 29 deletions

View file

@ -273,8 +273,7 @@ void Schematic::placeOnMap(ServerMap *map, v3s16 p, u32 flags,
//// Create & dispatch map modification events to observers
MapEditEvent event;
event.type = MEET_OTHER;
for (it = modified_blocks.begin(); it != modified_blocks.end(); ++it)
event.modified_blocks.insert(it->first);
event.setModifiedBlocks(modified_blocks);
map->dispatchEvent(event);
}