From bde507cac6c4521ca57bd9a11057cec327784040 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Thu, 23 Aug 2018 09:41:17 -0700 Subject: [PATCH] clear blocks in the way, probably fixes #82 --- .../baritone/pathing/movement/movements/MovementTraverse.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java b/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java index 105c1997..ad9a129f 100644 --- a/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java +++ b/src/main/java/baritone/pathing/movement/movements/MovementTraverse.java @@ -196,10 +196,12 @@ public class MovementTraverse extends Movement { if (Objects.equals(LookBehaviorUtils.getSelectedBlock().orElse(null), against1) && Minecraft.getMinecraft().player.isSneaking()) { if (LookBehaviorUtils.getSelectedBlock().get().offset(side).equals(positionsToPlace[0])) { state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true); + return state; } else { // Out.gui("Wrong. " + side + " " + LookBehaviorUtils.getSelectedBlock().get().offset(side) + " " + positionsToPlace[0], Out.Mode.Debug); } } + state.setInput(InputOverrideHandler.Input.CLICK_LEFT, true); System.out.println("Trying to look at " + against1 + ", actually looking at" + LookBehaviorUtils.getSelectedBlock()); return state; }