From 69fdba7ea23903cf7a801de52c6d3d7789b55061 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 14 May 2022 22:56:27 +0700 Subject: [PATCH] Reset slot counter when filter is updated --- .../ru/dbotthepony/mc/otm/block/entity/StorageInterfaces.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageInterfaces.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageInterfaces.kt index b60098a41..dc5f62ad6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageInterfaces.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/StorageInterfaces.kt @@ -215,6 +215,8 @@ class StorageExporterBlockEntity(blockPos: BlockPos, blockState: BlockState) : for (tuple in component.getStacks()) { addStack(tuple, component) } + + lastSlot = 0 }.also { it.isWhitelist = true } private var lastSlot = 0