mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't continue trying to deserialize blank block data
This commit is contained in:
parent
16bd368374
commit
068dd796f5
2 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos)
|
||||||
} else {
|
} else {
|
||||||
throw SerializationError("Blank block data in database");
|
throw SerializationError("Blank block data in database");
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s.ok()) {
|
if (s.ok()) {
|
||||||
|
|
|
@ -237,6 +237,7 @@ MapBlock* Database_SQLite3::loadBlock(v3s16 blockpos)
|
||||||
} else {
|
} else {
|
||||||
throw SerializationError("Blank block data in database");
|
throw SerializationError("Blank block data in database");
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string datastr(data, len);
|
std::string datastr(data, len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue