Anuken/Mindustry-Suggestions/issues/548
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user