You can use EntityPathfindEvent to cancel new pathfinds from overriding your current

This commit is contained in:
Aikar 2018-09-09 14:48:32 -04:00
parent 75d51d6f9f
commit cc238c61a0

View file

@ -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
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
new file mode 100644
index 000000000..78230bd28