From 55ad5c0352cb78417f3912ad68b6eaeb0c5f789d Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 6 Jun 2019 20:44:12 +1000 Subject: [PATCH] SPIGOT-5024: Fox error - Unknown target reason By: md_5 --- paper-server/nms-patches/EntityFox.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-server/nms-patches/EntityFox.patch b/paper-server/nms-patches/EntityFox.patch index e08c7ccf9e..b2866ec1cb 100644 --- a/paper-server/nms-patches/EntityFox.patch +++ b/paper-server/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();