From 5601f972667be4d54c1db4d4b1b61a08ee238e93 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 13 Jun 2021 10:12:50 -0400 Subject: [PATCH] Fixed #5418 --- core/src/mindustry/core/Control.java | 3 ++- core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index 93fa1e68a2..a416b5d2fd 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -323,13 +323,14 @@ public class Control implements ApplicationListener, Loadable{ if(slot != null && !clearSectors){ try{ + boolean hadNoCore = !sector.info.hasCore; reloader.begin(); slot.load(); slot.setAutosave(true); state.rules.sector = sector; //if there is no base, simulate a new game and place the right loadout at the spawn position - if(state.rules.defaultTeam.cores().isEmpty()){ + if(state.rules.defaultTeam.cores().isEmpty() || hadNoCore){ //no spawn set -> delete the sector save if(sector.info.spawnPosition == 0){ diff --git a/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java b/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java index 5295bf0703..1ef6010f2b 100644 --- a/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java +++ b/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java @@ -61,6 +61,8 @@ public class ItemLiquidGenerator extends PowerGenerator{ @Override public void init(){ + emitLight = true; + lightRadius = 65f * size; if(!defaults){ setDefaults(); }