better check
This commit is contained in:
parent
67fa91abe8
commit
42513e4b56
@ -441,7 +441,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
|
|||||||
Optional<PathExecutor> executor = calcResult.getPath().map(p -> new PathExecutor(PathingBehavior.this, p));
|
Optional<PathExecutor> executor = calcResult.getPath().map(p -> new PathExecutor(PathingBehavior.this, p));
|
||||||
if (current == null) {
|
if (current == null) {
|
||||||
if (executor.isPresent()) {
|
if (executor.isPresent()) {
|
||||||
if (executor.get().getPath().getSrc().equals(expectedSegmentStart)) {
|
if (executor.get().getPath().positions().contains(expectedSegmentStart)) {
|
||||||
queuePathEvent(PathEvent.CALC_FINISHED_NOW_EXECUTING);
|
queuePathEvent(PathEvent.CALC_FINISHED_NOW_EXECUTING);
|
||||||
current = executor.get();
|
current = executor.get();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user