From ebee78b0352455d21a2df06ea3988ef7d9656911 Mon Sep 17 00:00:00 2001 From: leijurv Date: Mon, 13 Aug 2018 20:18:12 -0700 Subject: [PATCH] optim --- .../java/baritone/bot/pathing/movement/MovementHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/bot/pathing/movement/MovementHelper.java b/src/main/java/baritone/bot/pathing/movement/MovementHelper.java index 045e0d9c..78b3a4b5 100644 --- a/src/main/java/baritone/bot/pathing/movement/MovementHelper.java +++ b/src/main/java/baritone/bot/pathing/movement/MovementHelper.java @@ -138,10 +138,10 @@ public interface MovementHelper extends ActionCosts, Helper { IBlockState state = BlockStateInterface.get(position); Block block = state.getBlock(); if (!block.equals(Blocks.AIR) && !canWalkThrough(position)) { - if (avoidBreaking(position)) { + if (!Baritone.settings().allowBreak) { return COST_INF; } - if (!Baritone.settings().allowBreak) { + if (avoidBreaking(position)) { return COST_INF; } //if (!Baritone.allowBreakOrPlace) {