Made frozen forest less constricted / Tree block fix / Server crash fix

This commit is contained in:
Anuken
2019-04-13 17:32:49 -04:00
parent 8a983c784d
commit 392dcf3092
3 changed files with 9 additions and 2 deletions

View File

@@ -545,12 +545,16 @@ public class ServerControl implements ApplicationListener{
int slot = Strings.parseInt(arg[0]);
if(!SaveIO.isSaveValid(slot)){
err("No save data found for slot.");
err("No (valid) save data found for slot.");
return;
}
Core.app.post(() -> {
SaveIO.loadFromSlot(slot);
try{
SaveIO.loadFromSlot(slot);
}catch(Throwable t){
err("Failed to load save. Outdated or corrupt file.");
}
info("Save loaded.");
host();
state.set(State.playing);