better skip ahead
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user