forked from Mirrorlandia_minetest/minetest
Don't continue trying to deserialize blank block data
This commit is contained in:
parent
16bd368374
commit
068dd796f5
@ -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…
Reference in New Issue
Block a user