From 14c56c60415987f23df060a7e85633f983aa6c09 Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Thu, 18 Jul 2013 02:25:02 +0100 Subject: [PATCH] Fix infinite liquid dupe bug. --- common/mekanism/common/BlockBasic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/mekanism/common/BlockBasic.java b/common/mekanism/common/BlockBasic.java index 636add725..1cb653eae 100644 --- a/common/mekanism/common/BlockBasic.java +++ b/common/mekanism/common/BlockBasic.java @@ -269,7 +269,7 @@ public class BlockBasic extends Block LiquidStack itemLiquid = LiquidContainerRegistry.getLiquidForFilledItem(itemStack); int max = tileEntity.structure.volume*16000; - if(tileEntity.structure.liquidStored == null || (tileEntity.structure.liquidStored.amount+itemLiquid.amount <= max)) + if(tileEntity.structure.liquidStored == null || (tileEntity.structure.liquidStored.isLiquidEqual(itemLiquid) && (tileEntity.structure.liquidStored.amount+itemLiquid.amount <= max))) { if(LiquidContainerRegistry.isBucket(itemStack)) {