From fc0d73dbf6f394c2b225434c3e1798c48d48f458 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Fri, 12 Sep 2014 15:46:09 +0200 Subject: [PATCH] Fix Smelteries not updating their current capacity sometimes. Should fix capacity problems. --- src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java index 3be7f610..89295f53 100644 --- a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java +++ b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java @@ -179,6 +179,11 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci } } } + + // update current liquid. This is done in case some config or something changed the capacity or other things. + currentLiquid = 0; + for(FluidStack liquid : moltenMetal) + currentLiquid += liquid.amount; } /* Misc */