Fix storage bus crash on inventory shrink
This commit is contained in:
parent
a911eed753
commit
40a3547595
@ -279,7 +279,8 @@ class StorageBusBlockEntity(blockPos: BlockPos, blockState: BlockState) : Matter
|
||||
} else {
|
||||
// shrink
|
||||
for (i in parent.slots until scanned.size) {
|
||||
removeTracked(i)
|
||||
if (scannedMap[i] != null)
|
||||
removeTracked(i)
|
||||
}
|
||||
|
||||
scanned = arrayOfNulls(parent.slots)
|
||||
|
Loading…
Reference in New Issue
Block a user