-
-
Save anonymous/5623a49f1d5893ef48ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/map.cpp b/src/map.cpp | |
index 6261289..487cff4 100644 | |
--- a/src/map.cpp | |
+++ b/src/map.cpp | |
@@ -3688,6 +3688,12 @@ void ServerMap::loadBlock(std::string *blob, v3s16 p3d, MapSector *sector, bool | |
if(g_settings->getBool("ignore_world_load_errors")){ | |
errorstream<<"Ignoring block load error. Duck and cover! " | |
<<"(ignore_world_load_errors)"<<std::endl; | |
+ MapBlock *block; | |
+ block = sector->createBlankBlockNoInsert(p3d.Y); | |
+ sector->insertBlock(block); | |
+ if(save_after_load) | |
+ saveBlock(block); | |
+ block->resetModified(); | |
} else { | |
throw SerializationError("Invalid block data in database"); | |
//assert(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment