From 24f59218633214b5f7cd1e6f748aeeb770e55396 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 17 Mar 2020 09:07:31 -0400 Subject: [PATCH] Bugfixes --- core/src/mindustry/core/Control.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index a425bc45fd..e8a2821612 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -260,6 +260,7 @@ public class Control implements ApplicationListener, Loadable{ state.rules.sector = sector; state.set(State.playing); }catch(SaveException e){ + sector.save = null; Log.err(e); ui.showErrorMessage("$save.corrupted"); slot.delete(); @@ -271,12 +272,9 @@ public class Control implements ApplicationListener, Loadable{ logic.reset(); world.loadSector(sector); state.rules.sector = sector; - //TODO enable for lighting - //state.rules.lighting = true; logic.play(); control.saves.saveSector(sector); - //TODO uncomment for efffect - //Events.fire(Trigger.newGame); + Events.fire(Trigger.newGame); } }); }