Skip to content

Commit

Permalink
Rename AStarNode method for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 19, 2023
1 parent dbaf6f1 commit b86bcfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/astar/AStarNode.java
Expand Up @@ -31,7 +31,7 @@ protected AStarNode getParent() {
}

@SuppressWarnings("unchecked")
protected <T extends AStarNode> Iterable<T> getParents() {
protected <T extends AStarNode> Iterable<T> orderedPath() {
if (parents != null)
return (Iterable<T>) parents;
parents = Lists.newArrayList();
Expand Down
Expand Up @@ -46,7 +46,7 @@ public void addCallback(PathCallback callback) {

@Override
public Plan buildPlan() {
return new Path(getParents());
return new Path(orderedPath());
}

@Override
Expand Down

0 comments on commit b86bcfd

Please sign in to comment.