SPIGOT-5024: Fox error - Unknown target reason

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-06-06 20:44:12 +10:00
parent a5abba4a51
commit 55ad5c0352

View File

@ -59,3 +59,12 @@
super(EntityFox.this, oclass, 10, flag, flag1, predicate); 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();