Fix crash loading terminal from disk
This commit is contained in:
parent
f4f4c7ff03
commit
2a9fc29cdd
|
@ -163,7 +163,7 @@ class TerminalBlockEntity: DeviceBlockEntity(PhyBlockEntities.TERMINAL), Invento
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onInvChange(inv: Inventory) {
|
override fun onInvChange(inv: Inventory) {
|
||||||
if (inv == internalBuffer && !world!!.isClient) {
|
if (inv == internalBuffer && world != null && !world!!.isClient) {
|
||||||
markDirty()
|
markDirty()
|
||||||
sync()
|
sync()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue