13
0
geforkt von Mirrors/Paper
Paper/nms-patches/EntityVex.patch

20 Zeilen
602 B
Diff

2016-11-17 02:41:03 +01:00
--- 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 {
2018-07-15 02:00:00 +02:00
@@ -178,7 +179,7 @@
2016-11-17 02:41:03 +01:00
}
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();
}
}