From e35a3aaf801083ec99987c9b4bbb61ef56b836d5 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 31 Jan 2023 00:21:57 +0700 Subject: [PATCH] daym --- .../mc/otm/block/entity/tech/BatteryBankBlockEntity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 a4dec5cfe..f348fdd9b 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 @@ -289,11 +289,11 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte private val consumers = object : BESubscribeList(this@BatteryBankBlockEntity, ForgeCapabilities.ENERGY) { override fun test(t: Direction): Boolean { - return -blockState.facingOne == t + return blockState.facingOne == t } } - fun checkSurroundings() = consumers.update((-blockState.facingOne)::equals) + fun checkSurroundings() = consumers.update(blockState.facingOne::equals) fun tick() { if (redstoneControl.isBlockedByRedstone)