Great cleanup

This commit is contained in:
Skat
2020-11-07 11:37:46 +03:00
parent 29b8db0a85
commit ed36390f3c
45 changed files with 134 additions and 189 deletions

View File

@@ -77,7 +77,6 @@ public class Saves{
}
public void update(){
if(current != null && state.isGame()
&& !(state.isPaused() && Core.scene.hasDialog())){
if(lastTimestamp != 0){
@@ -93,8 +92,8 @@ public class Saves{
try{
current.save();
}catch(Throwable e){
e.printStackTrace();
}catch(Throwable t){
Log.err(t);
}
Time.runTask(3f, () -> saving = false);
@@ -218,7 +217,7 @@ public class Saves{
previewFile().writePNG(renderer.minimap.getPixmap());
requestedPreview = false;
}catch(Throwable t){
t.printStackTrace();
Log.err(t);
}
});
}