Fixed machines disabled by default on placement
This commit is contained in:
parent
3a520339b7
commit
826956ccac
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public abstract class TileEntityAbstractMachine extends TileEntityAbstractInterf
|
||||||
super.readFromNBT(tagCompound);
|
super.readFromNBT(tagCompound);
|
||||||
|
|
||||||
name = tagCompound.getString("name");
|
name = tagCompound.getString("name");
|
||||||
isEnabled = tagCompound.hasKey("isEnabled") && tagCompound.getBoolean("isEnabled");
|
isEnabled = !tagCompound.hasKey("isEnabled") || tagCompound.getBoolean("isEnabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
|
|
Loading…
Reference in a new issue