From 01bdbea98c85a742091d6377cf5f0e40062830de Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 29 Sep 2022 20:33:37 -0400 Subject: [PATCH] Fixed #7638 --- core/src/mindustry/world/blocks/production/GenericCrafter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/production/GenericCrafter.java b/core/src/mindustry/world/blocks/production/GenericCrafter.java index 0019307560..c14c3b5036 100644 --- a/core/src/mindustry/world/blocks/production/GenericCrafter.java +++ b/core/src/mindustry/world/blocks/production/GenericCrafter.java @@ -240,8 +240,9 @@ public class GenericCrafter extends Block{ @Override public float getProgressIncrease(float baseTime){ //limit progress increase by maximum amount of liquid it can produce - float scaling = 1f, max = 0f; + float scaling = 1f, max = 1f; if(outputLiquids != null){ + max = 0f; for(var s : outputLiquids){ float value = (liquidCapacity - liquids.get(s.liquid)) / (s.amount * edelta()); scaling = Math.min(scaling, value);