CraftBukkit/nms-patches/PathfinderGoalTargetNearestPlayer.patch
2014-11-28 16:54:14 -06:00

10 lines
264 B
Diff

@@ -59,7 +59,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();
}