Skip to content

Commit

Permalink
thank you off by one errors very cool
Browse files Browse the repository at this point in the history
  • Loading branch information
leijurv committed Jul 7, 2019
1 parent 8f761f7 commit 4259764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/baritone/pathing/path/PathExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public boolean onTick() {
return false;
}
}
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)
for (int i = pathPosition + 3; i < path.length() - 1; 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 (((Movement) path.movements().get(i)).getValidPositions().contains(whereAmI)) {
if (i - pathPosition > 2) {
Expand Down

0 comments on commit 4259764

Please sign in to comment.