We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e9cc754 + 94efa8d commit 3eb5dc4Copy full SHA for 3eb5dc4
src/main/scala/li/cil/oc/common/tileentity/traits/OpenSides.scala
@@ -27,7 +27,8 @@ trait OpenSides extends TileEntity {
27
28
override def readFromNBTForServer(nbt: NBTTagCompound) {
29
super.readFromNBTForServer(nbt)
30
- openSides = uncompressSides(nbt.getByte(Settings.namespace + "openSides"))
+ if (nbt.hasKey(Settings.namespace + "openSides"))
31
+ openSides = uncompressSides(nbt.getByte(Settings.namespace + "openSides"))
32
}
33
34
override def writeToNBTForServer(nbt: NBTTagCompound) {
0 commit comments