findPath doesn't throw an exception
This commit is contained in:
parent
e41a04a0d3
commit
e27724aca5
@ -89,9 +89,7 @@ public class PathingBehavior extends Behavior {
|
|||||||
displayChatMessageRaw("Starting to search for path from " + start + " to " + goal);
|
displayChatMessageRaw("Starting to search for path from " + start + " to " + goal);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
findPath(start).map(PathExecutor::new).ifPresent(path -> current = path);
|
findPath(start).map(PathExecutor::new).ifPresent(path -> current = path);
|
||||||
} catch (Exception ignored) {}
|
|
||||||
/*isThereAnythingInProgress = false;
|
/*isThereAnythingInProgress = false;
|
||||||
if (!currentPath.goal.isInGoal(currentPath.end)) {
|
if (!currentPath.goal.isInGoal(currentPath.end)) {
|
||||||
if (talkAboutIt) {
|
if (talkAboutIt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user