summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityVex.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityVex.patch')
-rw-r--r--nms-patches/EntityVex.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/nms-patches/EntityVex.patch b/nms-patches/EntityVex.patch
new file mode 100644
index 00000000..0c50e0e2
--- /dev/null
+++ b/nms-patches/EntityVex.patch
@@ -0,0 +1,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 {
+
+@@ -182,7 +183,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();
+ }
+ }