diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageBusBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageBusBlockEntity.kt index 25277c481..2189e13b6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageBusBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageBusBlockEntity.kt @@ -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)