summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalTargetNearestPlayer.patch
blob: 560d9330b922046d28bb0d199d60c916ed41cb0d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/PathfinderGoalTargetNearestPlayer.java
+++ b/net/minecraft/server/PathfinderGoalTargetNearestPlayer.java
@@ -85,7 +85,7 @@
     }
 
     public void c() {
-        this.b.setGoalTarget(this.e);
+        this.b.setGoalTarget(this.e, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit - added reason
         super.c();
     }