Hopefully stop corruption hitting gas tanks.
This commit is contained in:
parent
e7f3204ed7
commit
417b072c66
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ public class GasTank
|
|||
stored = GasStack.readFromNBT(nbtTags.getCompoundTag("stored"));
|
||||
}
|
||||
|
||||
if(nbtTags.hasKey("maxGas"))
|
||||
if(nbtTags.hasKey("maxGas") && nbtTags.getInteger("maxGas") != 0)
|
||||
{
|
||||
maxGas = nbtTags.getInteger("maxGas");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue