From bdbdbe4459458dfccd07f886807eb9496611c9c6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 6 Jun 2019 20:44:12 +1000 Subject: [PATCH] SPIGOT-5024: Fox error - Unknown target reason --- nms-patches/EntityFox.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nms-patches/EntityFox.patch b/nms-patches/EntityFox.patch index e08c7ccf9e..b2866ec1cb 100644 --- a/nms-patches/EntityFox.patch +++ b/nms-patches/EntityFox.patch @@ -59,3 +59,12 @@ super(EntityFox.this, oclass, 10, flag, flag1, predicate); } +@@ -1181,7 +1186,7 @@ + + @Override + public void c() { +- EntityFox.this.setGoalTarget(this.j); ++ EntityFox.this.setGoalTarget(this.j, org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_ATTACKED_OWNER, true); // CraftBukkit + this.c = this.j; + if (this.k != null) { + this.l = this.k.cs();