Forgot to save the node, ack!

This commit is contained in:
Florian Nücke 2015-12-29 23:59:22 +01:00
parent a020657bf0
commit a4d3101626

View File

@ -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)