Re-commit Dynamic Tank fix

This commit is contained in:
Aidan Brady 2013-07-20 12:17:58 -04:00
parent 26e86c8eee
commit cd53a8b4db

View file

@ -269,7 +269,7 @@ public class BlockBasic extends Block
FluidStack itemFluid = FluidContainerRegistry.getFluidForFilledItem(itemStack);
int max = tileEntity.structure.volume*16000;
if(tileEntity.structure.fluidStored == null || (tileEntity.structure.fluidStored.amount+itemFluid.amount <= max))
if(tileEntity.structure.fluidStored == null || (tileEntity.structure.fluidStored.isFluidEqual(itemFluid) && (tileEntity.structure.fluidStored.amount+itemFluid.amount <= max)))
{
if(FluidContainerRegistry.isBucket(itemStack))
{