aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2013-03-17 21:09:05 +0400
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-03-17 21:17:13 +0400
commitd207d359d12ef1ae27b0e3255834d8939e687a14 (patch)
tree4802a3add680ec2bdc58eac99270e810fe50c249 /src
parent5f88cd98ada8fd59e4db68e969e17c09342c4ece (diff)
downloadminetest-d207d359d12ef1ae27b0e3255834d8939e687a14.tar.gz
minetest-d207d359d12ef1ae27b0e3255834d8939e687a14.tar.bz2
minetest-d207d359d12ef1ae27b0e3255834d8939e687a14.zip
Don't erase modified_blocks
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 3d36675a8..8d8ce0d28 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1324,7 +1324,7 @@ bool Map::addNodeWithEvent(v3s16 p, MapNode n)
i = modified_blocks.begin();
i != modified_blocks.end(); ++i)
{
- event.modified_blocks.erase(i->first);
+ event.modified_blocks.insert(i->first);
}
}
catch(InvalidPositionException &e){
@@ -1352,7 +1352,7 @@ bool Map::removeNodeWithEvent(v3s16 p)
i = modified_blocks.begin();
i != modified_blocks.end(); ++i)
{
- event.modified_blocks.erase(i->first);
+ event.modified_blocks.insert(i->first);
}
}
catch(InvalidPositionException &e){
@@ -3058,7 +3058,7 @@ MapBlock * ServerMap::emergeBlock(v3s16 p, bool create_blank)
i = modified_blocks.begin();
i != modified_blocks.end(); ++i)
{
- event.modified_blocks.erase(i->first);
+ event.modified_blocks.insert(i->first);
}
// Queue event