1
0
mirror of https://github.com/moparisthebest/minetest synced 2025-01-10 21:28:02 -05:00

Don't erase modified_blocks

This commit is contained in:
Ilya Zhuravlev 2013-03-17 21:09:05 +04:00
parent 5f88cd98ad
commit d207d359d1

View File

@ -1324,7 +1324,7 @@ bool Map::addNodeWithEvent(v3s16 p, MapNode n)
i = modified_blocks.begin(); i = modified_blocks.begin();
i != modified_blocks.end(); ++i) i != modified_blocks.end(); ++i)
{ {
event.modified_blocks.erase(i->first); event.modified_blocks.insert(i->first);
} }
} }
catch(InvalidPositionException &e){ catch(InvalidPositionException &e){
@ -1352,7 +1352,7 @@ bool Map::removeNodeWithEvent(v3s16 p)
i = modified_blocks.begin(); i = modified_blocks.begin();
i != modified_blocks.end(); ++i) i != modified_blocks.end(); ++i)
{ {
event.modified_blocks.erase(i->first); event.modified_blocks.insert(i->first);
} }
} }
catch(InvalidPositionException &e){ catch(InvalidPositionException &e){
@ -3058,7 +3058,7 @@ MapBlock * ServerMap::emergeBlock(v3s16 p, bool create_blank)
i = modified_blocks.begin(); i = modified_blocks.begin();
i != modified_blocks.end(); ++i) i != modified_blocks.end(); ++i)
{ {
event.modified_blocks.erase(i->first); event.modified_blocks.insert(i->first);
} }
// Queue event // Queue event