Hopefully stop corruption hitting gas tanks.

This commit is contained in:
Ben Spiers committed 2014-09-30 20:24:04 +01:00
1 parent e7f3204ed7
commit 417b072c66
1 file changed
+1 -1
+1 -1
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");
}