better skip ahead
This commit is contained in:
parent
cbbaf2aa2f
commit
8f761f7dff
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user