From a4d31016265f3c28ef8f226f217826fbd062dfd7 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 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)