mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
SPIGOT-5929: Angered zombified piglins do not inherit killed_by_player status
This commit is contained in:
parent
7f6b4f587c
commit
47abffa218
@ -18,7 +18,22 @@
|
||||
});
|
||||
}
|
||||
|
||||
@@ -132,7 +132,16 @@
|
||||
@@ -117,7 +117,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
- public void setGoalTarget(@Nullable EntityLiving entityliving) {
|
||||
+ public boolean setGoalTarget(@Nullable EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent) { // CraftBukkit - signature
|
||||
if (this.getGoalTarget() == null && entityliving != null) {
|
||||
this.bv = EntityPigZombie.d.a(this.random);
|
||||
this.bA = EntityPigZombie.bz.a(this.random);
|
||||
@@ -127,12 +127,21 @@
|
||||
this.e((EntityHuman) entityliving);
|
||||
}
|
||||
|
||||
- super.setGoalTarget(entityliving);
|
||||
+ return super.setGoalTarget(entityliving, reason, fireEvent); // CraftBukkit
|
||||
}
|
||||
|
||||
@Override
|
||||
public void anger() {
|
||||
|
Loading…
Reference in New Issue
Block a user