Don't check same condition twice
This commit is contained in:
parent
3a5a20db02
commit
58365999d4
@ -246,11 +246,6 @@ abstract class MatteryWorkerBlockEntity<JobType : MatteryWorkerBlockEntity.Job>(
|
|||||||
var currentJob = currentJob
|
var currentJob = currentJob
|
||||||
|
|
||||||
if (currentJob == null) {
|
if (currentJob == null) {
|
||||||
if (isBlockedByRedstone) {
|
|
||||||
isIdling = true
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
val (job, reason) = computeNextJob()
|
val (job, reason) = computeNextJob()
|
||||||
|
|
||||||
if (job == null) {
|
if (job == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user