mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
20 lines
602 B
Diff
20 lines
602 B
Diff
--- 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();
|
|
}
|
|
}
|