Fix infinite liquid dupe bug.

This commit is contained in:
Ben Spiers 2013-07-18 02:25:02 +01:00
parent 92c3cb6811
commit 14c56c6041

View file

@ -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))
{