Fixed overflow gate, splitter

This commit is contained in:
Anuken
2018-07-13 10:11:42 -04:00
parent 2fcb3c4420
commit 93bec04c92
8 changed files with 127 additions and 91 deletions

View File

@@ -166,21 +166,18 @@ public class LoadDialog extends FloatingDialog{
}
public void runLoadSave(SaveSlot slot){
ui.loadfrag.show();
hide();
ui.paused.hide();
Timers.runTask(3f, () -> {
ui.loadfrag.hide();
hide();
ui.loadLogic(() -> {
try{
slot.load();
state.set(State.playing);
ui.paused.hide();
}catch(Exception e){
Log.err(e);
ui.paused.hide();
state.set(State.menu);
logic.reset();
ui.showError("$text.save.corrupted");
threads.runGraphics(() -> ui.showError("$text.save.corrupted"));
}
});
}