From a1c03eb6016d2649f5f5b4b786c3e9745a5facf3 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 5 Jun 2019 12:04:09 -0700 Subject: [PATCH] another tool selection fix --- src/main/java/baritone/pathing/movement/Movement.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/baritone/pathing/movement/Movement.java b/src/main/java/baritone/pathing/movement/Movement.java index 5cb4fef9..2ddcdc55 100644 --- a/src/main/java/baritone/pathing/movement/Movement.java +++ b/src/main/java/baritone/pathing/movement/Movement.java @@ -114,6 +114,7 @@ public abstract class Movement implements IMovement, MovementHelper { currentState.setInput(Input.JUMP, true); } if (ctx.player().isEntityInsideOpaqueBlock()) { + ctx.getSelectedBlock().ifPresent(pos -> MovementHelper.switchToBestToolFor(ctx, BlockStateInterface.get(ctx, pos))); currentState.setInput(Input.CLICK_LEFT, true); }