get offline player data file from the right folder

This commit is contained in:
Lulu13022002
2024-12-18 21:54:15 +01:00
parent dce53e05b8
commit c71ada60db
5 changed files with 4 additions and 14 deletions

View File

@@ -135,7 +135,7 @@ public class PaperPathfinder implements com.destroystokyo.paper.entity.Pathfinde
@Nullable
@Override
public Location getNextPoint() {
if (!path.hasNext()) {
if (path.isDone()) {
return null;
}
return toLoc(path.nodes.get(path.getNextNodeIndex()));