PaperMC/nms-patches/PathfinderGoalNearestAttackableTarget.patch
2014-11-28 16:54:14 -06:00

9 lines
259 B
Diff

@@ -48,7 +48,7 @@
}
public void c() {
- this.e.setGoalTarget(this.d);
+ this.e.setGoalTarget(this.d, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // Craftbukkit - reason
super.c();
}
}