F1 hud toggle + old worlds load fix

This commit is contained in:
MihailRis
2023-12-10 02:23:04 +03:00
parent d75d75eeb8
commit 3e98526a24
3 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -426,7 +426,7 @@ bool WorldFiles::readOldWorldInfo(World* world) {
break;
}
}
return false;
return true;
}
bool WorldFiles::readOldPlayer(Player* player) {
size_t length = 0;
@@ -471,7 +471,7 @@ bool WorldFiles::readWorldInfo(World* world) {
// TODO: remove in v0.16
file = getOldWorldFile();
if (fs::is_regular_file(file)) {
readOldWorldInfo(world);
return readOldWorldInfo(world);
}
std::cerr << "warning: world.json does not exists" << std::endl;
return false;