mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix LevelDB maps
This commit is contained in:
parent
2330267d22
commit
d9de9f23d9
@ -94,7 +94,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos)
|
|||||||
std::string datastr;
|
std::string datastr;
|
||||||
leveldb::Status s = m_database->Get(leveldb::ReadOptions(),
|
leveldb::Status s = m_database->Get(leveldb::ReadOptions(),
|
||||||
i64tos(getBlockAsInteger(blockpos)), &datastr);
|
i64tos(getBlockAsInteger(blockpos)), &datastr);
|
||||||
if (datastr.length() == 0) {
|
if (datastr.length() == 0 && s.ok()) {
|
||||||
errorstream << "Blank block data in database (datastr.length() == 0) ("
|
errorstream << "Blank block data in database (datastr.length() == 0) ("
|
||||||
<< blockpos.X << "," << blockpos.Y << "," << blockpos.Z << ")" << std::endl;
|
<< blockpos.X << "," << blockpos.Y << "," << blockpos.Z << ")" << std::endl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user