From 58365999d410de205a80014937de54fe1a759623 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 20 Sep 2022 17:38:38 +0700 Subject: [PATCH] Don't check same condition twice --- .../mc/otm/block/entity/MatteryWorkerBlockEntity.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryWorkerBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryWorkerBlockEntity.kt index 4981bc2da..e08e04396 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryWorkerBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryWorkerBlockEntity.kt @@ -246,11 +246,6 @@ abstract class MatteryWorkerBlockEntity( var currentJob = currentJob if (currentJob == null) { - if (isBlockedByRedstone) { - isIdling = true - break - } - val (job, reason) = computeNextJob() if (job == null) {