mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Check so that unnecessary code doesn't run
This commit is contained in:
parent
99ccd4465e
commit
c22ab90fdb
1 changed files with 10 additions and 7 deletions
|
@ -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{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue