summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch')
-rw-r--r--nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch b/nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch
new file mode 100644
index 00000000..fefd3ad8
--- /dev/null
+++ b/nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch
@@ -0,0 +1,11 @@
+--- ../work/decompile-bb26c12b/net/minecraft/server/PathfinderGoalNearestAttackableTargetInsentient.java 2014-11-27 08:59:46.833421266 +1100
++++ src/main/java/net/minecraft/server/PathfinderGoalNearestAttackableTargetInsentient.java 2014-11-27 08:42:10.084851043 +1100
+@@ -54,7 +54,7 @@
+ }
+
+ public void c() {
+- this.b.setGoalTarget(this.e);
++ this.b.setGoalTarget(this.e, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_ENTITY, true); // CraftBukkit - reason
+ super.c();
+ }
+