better skip ahead

This commit is contained in:
Leijurv 2019-07-07 11:03:43 -07:00
parent cbbaf2aa2f
commit 8f761f7dff
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

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)
// 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) {
logDebug("Skipping forward " + (i - pathPosition) + " steps, to " + i);
}