blob: 0c50e0e26090068714c1fe275770410a1ecd3df3 (
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 {
@@ -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();
}
}
|