summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityVex.patch
blob: 08fc317e6149bd9d6bb26b3d29bbb2cb898b69f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/net/minecraft/server/EntityVex.java
+++ b/net/minecraft/server/EntityVex.java
@@ -1,6 +1,7 @@
 package net.minecraft.server;
 
 import javax.annotation.Nullable;
+import org.bukkit.event.entity.EntityTargetEvent;
 
 public class EntityVex extends EntityMonster {
 
@@ -178,7 +179,7 @@
         }
 
         public void c() {
-            EntityVex.this.setGoalTarget(EntityVex.this.b.getGoalTarget());
+            EntityVex.this.setGoalTarget(EntityVex.this.b.getGoalTarget(), EntityTargetEvent.TargetReason.OWNER_ATTACKED_TARGET, true); // CraftBukkit
             super.c();
         }
     }