reorder for performance

This commit is contained in:
Leijurv 2021-12-21 01:32:47 -10:00 committed by GitHub
parent 61a00b3965
commit 54617bf634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -839,8 +839,8 @@ public final class BuilderProcess extends BaritoneProcessHelper implements IBuil
if (desired == null) {
return true;
}
if ((current.getBlock() instanceof BlockGlazedTerracotta || current.getBlock() instanceof BlockBone || current.getBlock() instanceof BlockHay)
&& Baritone.settings().buildIgnoreDirection.value && current.getBlock() == desired.getBlock()) {
if (Baritone.settings().buildIgnoreDirection.value && current.getBlock() == desired.getBlock() &&
(current.getBlock() instanceof BlockGlazedTerracotta || current.getBlock() instanceof BlockBone || current.getBlock() instanceof BlockHay)) {
return true;
}
if (current.getBlock() instanceof BlockLiquid && Baritone.settings().okIfWater.value) {