From 54b0bd0b46b8de9b3b1380e50232b19d27554247 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 4 Feb 2025 20:45:55 -0500 Subject: [PATCH] oops --- core/src/mindustry/entities/comp/BuildingComp.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/BuildingComp.java b/core/src/mindustry/entities/comp/BuildingComp.java index 408e357c83..da8274ce4c 100644 --- a/core/src/mindustry/entities/comp/BuildingComp.java +++ b/core/src/mindustry/entities/comp/BuildingComp.java @@ -878,6 +878,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc, /** Tries to evenly distribute the specified liquid to nearby blocks. This method will likely be removed in the future! */ public void distributeLiquid(Liquid liquid){ if(liquids.get(liquid) <= 0.0001f) return; + float scaling = 2f; int dump = this.cdump; @@ -894,7 +895,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc, float ofract = other.liquids.get(liquid) / other.block.liquidCapacity; float fract = liquids.get(liquid) / block.liquidCapacity; - if(ofract < fract) transferLiquid(other, (fract - ofract) * block.liquidCapacity, liquid); + if(ofract < fract) transferLiquid(other, (fract - ofract) * block.liquidCapacity / scaling, liquid); } } }