Fixed campaign sector info not saving on exit

This commit is contained in:
Anuken
2025-04-21 19:40:20 -04:00
parent 359d46c6f3
commit c35b9b8076

View File

@@ -533,6 +533,7 @@ public class Control implements ApplicationListener, Loadable{
if(saves != null && saves.getCurrent() != null && saves.getCurrent().isAutosave() && !net.client() && !state.isMenu() && !state.gameOver){
try{
SaveIO.save(control.saves.getCurrent().file);
settings.forceSave();
Log.info("Saved on exit.");
}catch(Throwable t){
Log.err(t);