Skip to content

Commit 8f9438b

Browse files
committed
1.21.11 part 7: bump citizens version
1 parent 42b15a8 commit 8f9438b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

paper/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>net.citizensnpcs</groupId>
3333
<artifactId>citizens-main</artifactId>
34-
<version>2.0.38-SNAPSHOT</version>
34+
<version>2.0.41-SNAPSHOT</version>
3535
<type>jar</type>
3636
<scope>provided</scope>
3737
<exclusions>

plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<dependency>
4545
<groupId>net.citizensnpcs</groupId>
4646
<artifactId>citizens-main</artifactId>
47-
<version>2.0.38-SNAPSHOT</version>
47+
<version>2.0.41-SNAPSHOT</version>
4848
<type>jar</type>
4949
<scope>provided</scope>
5050
<exclusions>

plugin/src/main/java/com/denizenscript/denizen/utilities/world/PathFinder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.denizenscript.denizen.objects.LocationTag;
44
import com.denizenscript.denizencore.utilities.debugging.Debug;
5+
import net.citizensnpcs.api.ai.NavigatorParameters;
56
import net.citizensnpcs.api.astar.AStarMachine;
67
import net.citizensnpcs.api.astar.pathfinder.*;
78
import org.bukkit.Location;
@@ -19,7 +20,7 @@ public class PathFinder {
1920

2021
public static List<LocationTag> getPath(Location start, Location dest) {
2122
VectorGoal goal = new VectorGoal(dest, 1);
22-
Path plan = (Path) ASTAR.runFully(goal, new VectorNode(goal, start, new ChunkBlockSource(start, 100), new MinecraftBlockExaminer()), 50000);
23+
Path plan = (Path) ASTAR.runFully(goal, new VectorNode(goal, start, new ChunkBlockSource(start, 100), new NavigatorParameters().examiner(new MinecraftBlockExaminer())), 50000);
2324
if (plan == null) {
2425
Debug.verboseLog("PathFinder: No path found from " + start + " to " + dest + " (return null)");
2526
return new ArrayList<>();

0 commit comments

Comments
 (0)