Skip to content

Instantly share code, notes, and snippets.

@sofar
Created March 27, 2017 02:03
Show Gist options
  • Save sofar/fe74294b672d9eb77358ded6caa29aa1 to your computer and use it in GitHub Desktop.
Save sofar/fe74294b672d9eb77358ded6caa29aa1 to your computer and use it in GitHub Desktop.
diff --git a/src/map.cpp b/src/map.cpp
index 504760d09..5e0a759dc 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -2700,6 +2700,9 @@ void MMVManip::blitBackAll(std::map<v3s16, MapBlock*> *modified_blocks,
block->copyFrom(*this);
+ m_map->removeNodeMetadata(p);
+ m_map->removeNodeTimer(p);
+
if(modified_blocks)
(*modified_blocks)[p] = block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment