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
1 changed files with 1 additions and 3 deletions

View File

@ -89,9 +89,7 @@ public class PathingBehavior extends Behavior {
displayChatMessageRaw("Starting to search for path from " + start + " to " + goal);
}
try {
findPath(start).map(PathExecutor::new).ifPresent(path -> current = path);
} catch (Exception ignored) {}
findPath(start).map(PathExecutor::new).ifPresent(path -> current = path);
/*isThereAnythingInProgress = false;
if (!currentPath.goal.isInGoal(currentPath.end)) {
if (talkAboutIt) {