mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
F1 hud toggle + old worlds load fix
This commit is contained in:
parent
d75d75eeb8
commit
3e98526a24
3 changed files with 14 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue