better skip ahead

This commit is contained in:
Leijurv
2019-07-07 11:03:43 -07:00
parent cbbaf2aa2f
commit 8f761f7dff

View File

@@ -116,7 +116,7 @@ public class PathExecutor implements IPathExecutor, Helper {
} }
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(); 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 // also don't check pathPosition+2 because reasons
if (whereAmI.equals(path.positions().get(i))) { if (((Movement) path.movements().get(i)).getValidPositions().contains(whereAmI)) {
if (i - pathPosition > 2) { if (i - pathPosition > 2) {
logDebug("Skipping forward " + (i - pathPosition) + " steps, to " + i); logDebug("Skipping forward " + (i - pathPosition) + " steps, to " + i);
} }