Fixed machines disabled by default on placement

This commit is contained in:
Unknown 2019-01-30 00:56:40 +01:00 committed by unknown
parent 3a520339b7
commit 826956ccac

View file

@ -41,7 +41,7 @@ public abstract class TileEntityAbstractMachine extends TileEntityAbstractInterf
super.readFromNBT(tagCompound);
name = tagCompound.getString("name");
isEnabled = tagCompound.hasKey("isEnabled") && tagCompound.getBoolean("isEnabled");
isEnabled = !tagCompound.hasKey("isEnabled") || tagCompound.getBoolean("isEnabled");
}
@Nonnull