Skip to content

Commit

Permalink
Revert back to old calculation method until API is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 13, 2023
1 parent 8ff930f commit 1eb93e6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -173,12 +173,12 @@ public float heuristicDistance(Vector goal) {
}

private boolean isPassable(PathPoint mod) {
boolean passable = true;
boolean passable = false;
for (BlockExaminer examiner : info.examiners) {
PassableState state = examiner.isPassable(info.blockSource, mod);
if (state == PassableState.IGNORE)
continue;
passable &= state == PassableState.PASSABLE ? true : false;
passable |= state == PassableState.PASSABLE ? true : false;
}
return passable;
}
Expand Down

0 comments on commit 1eb93e6

Please sign in to comment.