Don't continue trying to deserialize blank block data

This commit is contained in:
kwolekr 2013-11-24 02:10:15 -05:00
parent 16bd368374
commit 068dd796f5
2 changed files with 2 additions and 0 deletions

@ -104,6 +104,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos)
} else {
throw SerializationError("Blank block data in database");
}
return NULL;
}
if (s.ok()) {

@ -237,6 +237,7 @@ MapBlock* Database_SQLite3::loadBlock(v3s16 blockpos)
} else {
throw SerializationError("Blank block data in database");
}
return NULL;
}
std::string datastr(data, len);