From e455f7d170db23ab73ddc93e66381761fa1996f7 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 30 Mar 2021 10:24:53 -0400 Subject: [PATCH] Fixed #5025 --- .../mindustry/world/blocks/power/ItemLiquidGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java b/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java index 8671ab3b5d..5295bf0703 100644 --- a/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java +++ b/core/src/mindustry/world/blocks/power/ItemLiquidGenerator.java @@ -97,10 +97,11 @@ public class ItemLiquidGenerator extends PowerGenerator{ //Note: Do not use this delta when calculating the amount of power or the power efficiency, but use it for resource consumption if necessary. //Power amount is delta'd by PowerGraph class already. float calculationDelta = delta(); + boolean cons = consValid(); - heat = Mathf.lerpDelta(heat, generateTime >= 0.001f && enabled ? 1f : 0f, 0.05f); + heat = Mathf.lerpDelta(heat, generateTime >= 0.001f && enabled && cons ? 1f : 0f, 0.05f); - if(!consValid()){ + if(!cons){ productionEfficiency = 0.0f; return; }