mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -04:00
Should fix NPE in tablets, closes #427.
This commit is contained in:
parent
6bf9423f35
commit
52006b3bfd
@ -257,11 +257,12 @@ object Tablet extends Callable[TabletWrapper] with RemovalListener[String, Table
|
||||
|
||||
def onRemoval(e: RemovalNotification[String, TabletWrapper]) {
|
||||
val tablet = e.getValue
|
||||
tablet.stop()
|
||||
if (tablet.node != null) {
|
||||
// Server.
|
||||
tablet.stop()
|
||||
tablet.node.remove()
|
||||
tablet.writeToNBT()
|
||||
}
|
||||
tablet.writeToNBT()
|
||||
}
|
||||
|
||||
@ForgeSubscribe
|
||||
|
Loading…
x
Reference in New Issue
Block a user