Don't check same condition twice

This commit is contained in:
DBotThePony 2022-09-20 17:38:38 +07:00
parent 3a5a20db02
commit 58365999d4
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -246,11 +246,6 @@ abstract class MatteryWorkerBlockEntity<JobType : MatteryWorkerBlockEntity.Job>(
var currentJob = currentJob
if (currentJob == null) {
if (isBlockedByRedstone) {
isIdling = true
break
}
val (job, reason) = computeNextJob()
if (job == null) {