From bd049d4c8d2a31d1de40d2191ebad3d5137c3016 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 2 Sep 2022 14:39:26 -0400 Subject: [PATCH] Minor liquid current tweaks --- core/src/mindustry/world/blocks/liquid/Conduit.java | 2 +- core/src/mindustry/world/modules/LiquidModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/liquid/Conduit.java b/core/src/mindustry/world/blocks/liquid/Conduit.java index a3d254db7b..8f9f28e51a 100644 --- a/core/src/mindustry/world/blocks/liquid/Conduit.java +++ b/core/src/mindustry/world/blocks/liquid/Conduit.java @@ -228,7 +228,7 @@ public class Conduit extends LiquidBlock implements Autotiler{ public void updateTile(){ smoothLiquid = Mathf.lerpDelta(smoothLiquid, liquids.currentAmount() / liquidCapacity, 0.05f); - if(liquids.currentAmount() > 0.001f && timer(timerFlow, 1)){ + if(liquids.currentAmount() > 0.0001f && timer(timerFlow, 1)){ moveLiquidForward(leaks, liquids.current()); noSleep(); }else{ diff --git a/core/src/mindustry/world/modules/LiquidModule.java b/core/src/mindustry/world/modules/LiquidModule.java index 497cc5f70e..60f2b61697 100644 --- a/core/src/mindustry/world/modules/LiquidModule.java +++ b/core/src/mindustry/world/modules/LiquidModule.java @@ -166,7 +166,7 @@ public class LiquidModule extends BlockModule{ if(liq != null){ int liquidid = liq.id; liquids[liquidid] = amount; - if(amount > 0){ + if(amount > liquids[current.id]){ current = liq; } }