From 3354c698c481905c39a85a3a3182f37037942023 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 15 Mar 2023 07:52:37 +0700 Subject: [PATCH] Check if we gonna automate anything before checking neighbour slot count --- .../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 7c6e8bb9c..878120d13 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 @@ -358,7 +358,7 @@ abstract class MatteryDeviceBlockEntity(blockEntityType: BlockEntityType<*>, blo private var outerSlotPush = 0 override fun tick() { - if (mode == ItemHandlerMode.DISABLED || currentHandler.slots == 0 || redstoneControl.isBlockedByRedstone) + if (mode == ItemHandlerMode.DISABLED || !automatePull && !automatePush || redstoneControl.isBlockedByRedstone || currentHandler.slots == 0) return neighbour.ifPresentK {