From 5721ef45ac95cbece11a492dba00bf03d987e767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Tue, 29 Dec 2015 23:59:22 +0100 Subject: [PATCH] Forgot to save the node, ack! --- .../oc/integration/tis3d/SerialInterfaceProviderAdapter.scala | 4 ++++ 1 file changed, 4 insertions(+) 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 babaa55307..40d2cc4f21 100644 --- a/src/main/scala/li/cil/oc/integration/tis3d/SerialInterfaceProviderAdapter.scala +++ b/src/main/scala/li/cil/oc/integration/tis3d/SerialInterfaceProviderAdapter.scala @@ -107,6 +107,8 @@ object SerialInterfaceProviderAdapter extends SerialInterfaceProvider { } override def readFromNBT(nbt: NBTTagCompound): Unit = { + node.load(nbt) + writeBuffer.clear() writeBuffer ++= nbt.getIntArray("writeBuffer").map(_.toShort) readBuffer.clear() @@ -115,6 +117,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)