From 9b922212219be449e4353387274a73b60f3912ff Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 14 Mar 2023 20:56:46 +0700 Subject: [PATCH] HOLY SHIT --- .../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 2c5d49e64..5d64f1744 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 @@ -102,7 +102,7 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte var summ2 = Decimal.ZERO for ((i, energy) in energies.withIndex()) { - val diff = energy.transcieveEnergy(howMuch, isReceiving, simulate) + val diff = energy.transcieveEnergy(howMuch, isReceiving, true) distribution[i] = diff summ2 += distribution[i] }