summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalTargetNearestPlayer.patch
blob: 1bdfde60ce1f5d93d3388e267450049e74cd2a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/PathfinderGoalTargetNearestPlayer.java
+++ b/net/minecraft/server/PathfinderGoalTargetNearestPlayer.java
@@ -91,7 +91,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();
     }