From 8d63488d7286759c51f77d331bee3e3444f55009 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 15 Apr 2023 23:46:47 +0700 Subject: [PATCH] oh my god are you serious? --- .../mc/otm/block/entity/tech/BatteryBankBlockEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9aa980d64..bb98310ec 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 @@ -65,7 +65,7 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte var remaining = howMuch var currentSlot = if (isReceiving) currentChangeSlot else currentDischangeSlot - for (i in 0 until container.containerSize - 1) { + for (i in 0 until container.containerSize) { val item = container[currentSlot] if (!item.isEmpty) {