mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 08:56:23 +01:00
SPIGOT-5024: Fox error - Unknown target reason
This commit is contained in:
parent
043d31deb0
commit
bdbdbe4459
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue