From 153b00fe40936e8b1ab555627c9fc3d42a69a3ce Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 18 Aug 2022 12:25:52 -0400 Subject: [PATCH] Fixed #7390 --- core/src/mindustry/world/blocks/power/PowerGraph.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mindustry/world/blocks/power/PowerGraph.java b/core/src/mindustry/world/blocks/power/PowerGraph.java index 3b217a06ba..f5caca98d0 100644 --- a/core/src/mindustry/world/blocks/power/PowerGraph.java +++ b/core/src/mindustry/world/blocks/power/PowerGraph.java @@ -368,6 +368,8 @@ public class PowerGraph{ @Deprecated private boolean otherConsumersAreValid(Building build, Consume consumePower){ + if(!build.enabled) return false; + float f = build.efficiency; //hack so liquids output positive efficiency values build.efficiency = 1f;