Anuken/Mindustry-Suggestions/issues/548

This commit is contained in:
Anuken
2020-09-20 16:35:25 -04:00
parent b2d054c1f2
commit 401384ae5b
3 changed files with 11 additions and 13 deletions

View File

@@ -78,7 +78,6 @@ public class Saves{
}
public void update(){
SaveSlot current = this.current;
if(current != null && state.isGame()
&& !(state.isPaused() && Core.scene.hasDialog())){
@@ -93,14 +92,13 @@ public class Saves{
if(time > Core.settings.getInt("saveinterval") * 60){
saving = true;
Time.runTask(2f, () -> {
try{
current.save();
}catch(Throwable e){
e.printStackTrace();
}
saving = false;
});
try{
current.save();
}catch(Throwable e){
e.printStackTrace();
}
Time.runTask(3f, () -> saving = false);
time = 0;
}