diff --git a/core/src/mindustry/world/blocks/power/ThermalGenerator.java b/core/src/mindustry/world/blocks/power/ThermalGenerator.java index f2c60402d1..ca57884ce7 100644 --- a/core/src/mindustry/world/blocks/power/ThermalGenerator.java +++ b/core/src/mindustry/world/blocks/power/ThermalGenerator.java @@ -43,6 +43,15 @@ public class ThermalGenerator extends PowerGenerator{ lightClipSize = Math.max(lightClipSize, 45f * size * 2f * 2f); } + @Override + public void afterPatch(){ + super.afterPatch(); + if(outputLiquid != null){ + outputsLiquid = true; + hasLiquids = true; + } + } + @Override public void setStats(){ super.setStats(); @@ -82,7 +91,7 @@ public class ThermalGenerator extends PowerGenerator{ generateEffect.at(x + Mathf.range(3f), y + Mathf.range(3f)); } - if(outputLiquid != null){ + if(outputLiquid != null && hasLiquids){ float added = Math.min(productionEfficiency * delta() * outputLiquid.amount, liquidCapacity - liquids.get(outputLiquid.liquid)); liquids.add(outputLiquid.liquid, added); dumpLiquid(outputLiquid.liquid);