From cc238c61a089b32992e076e9f847722655af7531 Mon Sep 17 00:00:00 2001 From: Aikar <aikar@aikar.co> Date: Sun, 9 Sep 2018 14:48:32 -0400 Subject: [PATCH] You can use EntityPathfindEvent to cancel new pathfinds from overriding your current --- Spigot-API-Patches/Mob-Pathfinding-API.patch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Spigot-API-Patches/Mob-Pathfinding-API.patch b/Spigot-API-Patches/Mob-Pathfinding-API.patch index fc253ce5cf..adde996ef7 100644 --- a/Spigot-API-Patches/Mob-Pathfinding-API.patch +++ b/Spigot-API-Patches/Mob-Pathfinding-API.patch @@ -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