findPath doesn't throw an exception

This commit is contained in:
Brady 2018-08-06 03:23:40 -05:00
parent e41a04a0d3
commit e27724aca5
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -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) {