appease codacy

This commit is contained in:
Leijurv 2018-11-05 15:16:23 -08:00
parent 2da3222115
commit 52246e41c8
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -28,6 +28,7 @@ import net.minecraft.util.math.BlockPos;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
public class PathingControlManager {
@ -126,7 +127,7 @@ public class PathingControlManager {
proc.onLostControl();
}
} else {
exec = proc.onTick(proc == inControlLastTick && baritone.getPathingBehavior().calcFailedLastTick(), baritone.getPathingBehavior().isSafeToCancel());
exec = proc.onTick(Objects.equals(proc, inControlLastTick) && baritone.getPathingBehavior().calcFailedLastTick(), baritone.getPathingBehavior().isSafeToCancel());
if (exec == null) {
if (proc.isActive()) {
throw new IllegalStateException(proc.displayName());