Fixed air generator being disabled during map conversion

This commit is contained in:
LemADEC 2017-07-24 11:17:00 +02:00
parent c1225116c5
commit 0f9c6adb7f

View file

@ -103,7 +103,7 @@ public class TileEntityAirGenerator extends TileEntityAbstractEnergy {
@Override
public void readFromNBT(final NBTTagCompound tagCompound) {
super.readFromNBT(tagCompound);
isEnabled = tagCompound.getBoolean("isEnabled");
isEnabled = !tagCompound.hasKey("isEnabled") || tagCompound.getBoolean("isEnabled");
}
@Override