diff --git a/src/main/scala/li/cil/oc/integration/tis3d/SerialInterfaceProviderAdapter.scala b/src/main/scala/li/cil/oc/integration/tis3d/SerialInterfaceProviderAdapter.scala index f73818885..74e7de741 100644 --- a/src/main/scala/li/cil/oc/integration/tis3d/SerialInterfaceProviderAdapter.scala +++ b/src/main/scala/li/cil/oc/integration/tis3d/SerialInterfaceProviderAdapter.scala @@ -108,6 +108,8 @@ object SerialInterfaceProviderAdapter extends SerialInterfaceProvider { } override def readFromNBT(nbt: NBTTagCompound): Unit = { + node.load(nbt) + writeBuffer.clear() writeBuffer ++= nbt.getIntArray("writeBuffer").map(_.toShort) readBuffer.clear() @@ -116,6 +118,8 @@ object SerialInterfaceProviderAdapter extends SerialInterfaceProvider { } override def writeToNBT(nbt: NBTTagCompound): Unit = { + node.save(nbt) + nbt.setIntArray("writeBuffer", writeBuffer.toArray.map(_.toInt)) nbt.setIntArray("readBuffer", readBuffer.toArray.map(_.toInt)) nbt.setBoolean("isReading", isReading)