mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 23:06:58 -04:00
Forgot to save the node, ack!
This commit is contained in:
parent
a020657bf0
commit
a4d3101626
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user