From 259d944d0d4e9457d3e82e057f8569d3c6e32697 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 21 Feb 2023 16:13:34 +0700 Subject: [PATCH] Fix push/pull of energy working while disabled by redstone --- .../dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt index 2159a4ab0..96f264442 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt @@ -154,7 +154,7 @@ abstract class MatteryDeviceBlockEntity(blockEntityType: BlockEntityType<*>, blo } override fun tick() { - if (energyFlow == FlowDirection.NONE || !automatePull && !automatePush) + if (energyFlow == FlowDirection.NONE || !automatePull && !automatePush || redstoneControl.isBlockedByRedstone) return neighbour.ifPresentK {