mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-12 08:50:04 -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 = {
|
override def readFromNBT(nbt: NBTTagCompound): Unit = {
|
||||||
|
node.load(nbt)
|
||||||
|
|
||||||
writeBuffer.clear()
|
writeBuffer.clear()
|
||||||
writeBuffer ++= nbt.getIntArray("writeBuffer").map(_.toShort)
|
writeBuffer ++= nbt.getIntArray("writeBuffer").map(_.toShort)
|
||||||
readBuffer.clear()
|
readBuffer.clear()
|
||||||
@ -116,6 +118,8 @@ object SerialInterfaceProviderAdapter extends SerialInterfaceProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override def writeToNBT(nbt: NBTTagCompound): Unit = {
|
override def writeToNBT(nbt: NBTTagCompound): Unit = {
|
||||||
|
node.save(nbt)
|
||||||
|
|
||||||
nbt.setIntArray("writeBuffer", writeBuffer.toArray.map(_.toInt))
|
nbt.setIntArray("writeBuffer", writeBuffer.toArray.map(_.toInt))
|
||||||
nbt.setIntArray("readBuffer", readBuffer.toArray.map(_.toInt))
|
nbt.setIntArray("readBuffer", readBuffer.toArray.map(_.toInt))
|
||||||
nbt.setBoolean("isReading", isReading)
|
nbt.setBoolean("isReading", isReading)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user