19
paper-server/nms-patches/EntityVex.patch
Normal file
19
paper-server/nms-patches/EntityVex.patch
Normal file
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user