From b4aee8424987241f440f07001034a560c608d9ee Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 25 Mar 2023 20:38:55 +0700 Subject: [PATCH] Specify battery bank item handler as inputOutput --- .../otm/block/entity/tech/BatteryBankBlockEntity.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/BatteryBankBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/BatteryBankBlockEntity.kt index dbb5c6cc2..064bc1cae 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/BatteryBankBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/tech/BatteryBankBlockEntity.kt @@ -39,16 +39,7 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte synchronizer.bool(false) } - val itemConfig = ConfigurableItemHandler( - input = container.handler(HandlerFilter.Dischargeable.and(HandlerFilter.OnlyIn)), - output = container.handler(HandlerFilter.OnlyOut), - frontDefault = ItemHandlerMode.INPUT_OUTPUT, - backDefault = ItemHandlerMode.INPUT_OUTPUT, - leftDefault = ItemHandlerMode.INPUT_OUTPUT, - rightDefault = ItemHandlerMode.INPUT_OUTPUT, - topDefault = ItemHandlerMode.INPUT_OUTPUT, - bottomDefault = ItemHandlerMode.INPUT_OUTPUT, - ) + val itemConfig = ConfigurableItemHandler(inputOutput = container.handler(HandlerFilter.Dischargeable)) private var currentChangeSlot = 0 private var currentDischangeSlot = 0