summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalOwnerHurtTarget.patch
blob: 831231deab88e74da429be9665f5ccf54b4431fb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- /home/matt/mc-dev-private//net/minecraft/server/PathfinderGoalOwnerHurtTarget.java	2015-02-26 22:40:22.963608135 +0000
+++ src/main/java/net/minecraft/server/PathfinderGoalOwnerHurtTarget.java	2015-02-26 22:40:22.963608135 +0000
@@ -30,7 +30,7 @@
     }
 
     public void c() {
-        this.e.setGoalTarget(this.b);
+        this.e.setGoalTarget(this.b, org.bukkit.event.entity.EntityTargetEvent.TargetReason.OWNER_ATTACKED_TARGET, true); // CraftBukkit - reason
         EntityLiving entityliving = this.a.getOwner();
 
         if (entityliving != null) {