mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
You can use EntityPathfindEvent to cancel new pathfinds from overriding your current
This commit is contained in:
@@ -9,6 +9,8 @@ This does not do anything to stop other AI rules from changing the location, so
|
|||||||
it is still up to the plugin to control that or override after another goal changed
|
it is still up to the plugin to control that or override after another goal changed
|
||||||
the location.
|
the location.
|
||||||
|
|
||||||
|
You can use EntityPathfindEvent to cancel new pathfinds from overriding your current.
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
|
diff --git a/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..78230bd28
|
index 000000000..78230bd28
|
||||||
|
Reference in New Issue
Block a user