From 5e5b8711a3d77388c5d23030a7e55dd68b7f60c8 Mon Sep 17 00:00:00 2001 From: router Date: Fri, 2 Sep 2022 15:58:31 +0300 Subject: [PATCH] Update Pump.java (#7500) --- core/src/mindustry/world/blocks/production/Pump.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/world/blocks/production/Pump.java b/core/src/mindustry/world/blocks/production/Pump.java index 72f50b7eb1..08c483ed94 100644 --- a/core/src/mindustry/world/blocks/production/Pump.java +++ b/core/src/mindustry/world/blocks/production/Pump.java @@ -127,6 +127,7 @@ public class Pump extends LiquidBlock{ @Override public double sense(LAccess sensor){ + if(sensor == LAccess.efficiency) return shouldConsume() ? efficiency : 0f; if(sensor == LAccess.totalLiquids) return liquidDrop == null ? 0f : liquids.get(liquidDrop); return super.sense(sensor); }