Fix infinite liquid dupe bug.
This commit is contained in:
parent
92c3cb6811
commit
14c56c6041
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue