Check so that unnecessary code doesn't run

This commit is contained in:
Ellpeck 2015-12-15 18:52:51 +01:00
parent 99ccd4465e
commit c22ab90fdb

View file

@ -196,6 +196,8 @@ public abstract class BlockContainerBase extends BlockContainer{
if(tile instanceof IFluidSaver){
int amount = stack.getTagCompound().getInteger("FluidAmount");
if(amount > 0){
FluidStack[] fluids = new FluidStack[amount];
for(int i = 0; i < amount; i++){
@ -209,5 +211,6 @@ public abstract class BlockContainerBase extends BlockContainer{
}
}
}
}
}