Hopefully stop corruption hitting gas tanks.

This commit is contained in:
Ben Spiers 2014-09-30 20:23:11 +01:00
parent e7f3204ed7
commit 417b072c66

View file

@ -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");
}