diff --git a/src/main/scala/li/cil/oc/common/tileentity/traits/OpenSides.scala b/src/main/scala/li/cil/oc/common/tileentity/traits/OpenSides.scala index 73fb0f0c7f..bc41268a02 100644 --- a/src/main/scala/li/cil/oc/common/tileentity/traits/OpenSides.scala +++ b/src/main/scala/li/cil/oc/common/tileentity/traits/OpenSides.scala @@ -27,7 +27,8 @@ trait OpenSides extends TileEntity { override def readFromNBTForServer(nbt: NBTTagCompound) { super.readFromNBTForServer(nbt) - openSides = uncompressSides(nbt.getByte(Settings.namespace + "openSides")) + if (nbt.hasKey(Settings.namespace + "openSides")) + openSides = uncompressSides(nbt.getByte(Settings.namespace + "openSides")) } override def writeToNBTForServer(nbt: NBTTagCompound) {