From 4368c6e60eece15bb15db22f66f88b42d00bef79 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 13 Sep 2026 21:20:47 -0400 Subject: [PATCH] Fixed #12657 --- .../world/blocks/power/ThermalGenerator.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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);