From af357d4d8e280878db0337191531aec10478cb9f Mon Sep 17 00:00:00 2001 From: leijurv Date: Sat, 6 Oct 2018 20:28:17 -0700 Subject: [PATCH] fix a weird bug --- src/main/java/baritone/pathing/path/PathExecutor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/path/PathExecutor.java b/src/main/java/baritone/pathing/path/PathExecutor.java index 15cb44d2..cc140941 100644 --- a/src/main/java/baritone/pathing/path/PathExecutor.java +++ b/src/main/java/baritone/pathing/path/PathExecutor.java @@ -114,7 +114,8 @@ public class PathExecutor implements Helper { return false; } } - for (int i = pathPosition + 2; i < path.length(); i++) { //dont check pathPosition+1. the movement tells us when it's done (e.g. sneak placing) + for (int i = pathPosition + 3; i < path.length(); i++) { //dont check pathPosition+1. the movement tells us when it's done (e.g. sneak placing) + // also don't check pathPosition+2 because reasons if (whereAmI.equals(path.positions().get(i))) { if (i - pathPosition > 2) { logDebug("Skipping forward " + (i - pathPosition) + " steps, to " + i);