From 826956ccacd8b09add9cad6e958af328819a2149 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 30 Jan 2019 00:56:40 +0100 Subject: [PATCH] Fixed machines disabled by default on placement --- .../java/cr0s/warpdrive/block/TileEntityAbstractMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cr0s/warpdrive/block/TileEntityAbstractMachine.java b/src/main/java/cr0s/warpdrive/block/TileEntityAbstractMachine.java index 3ee4d160..ef573765 100644 --- a/src/main/java/cr0s/warpdrive/block/TileEntityAbstractMachine.java +++ b/src/main/java/cr0s/warpdrive/block/TileEntityAbstractMachine.java @@ -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