Fix entity armor not showing on death animation (#7355)

This commit is contained in:
Jake Potrebic
2022-02-18 10:16:41 -08:00
parent 722983fbc7
commit 82a3c96a4f
3 changed files with 24 additions and 13 deletions

View File

@@ -94,11 +94,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // entityliving.awardKillScore(this, this.deathScore, source);
+ // }
// Paper start - clear equipment if event is not cancelled
if (this instanceof Mob mob) {
java.util.Collections.fill(mob.handItems, ItemStack.EMPTY);
if (this instanceof Mob) {
for (EquipmentSlot slot : this.clearedEquipmentSlots) {
@@ -0,0 +0,0 @@ public abstract class LivingEntity extends Entity {
this.dropCustomDeathLoot(source, i, flag);
this.clearEquipmentSlots = true; // Paper
this.clearEquipmentSlots = prev; // Paper
}
- // CraftBukkit start - Call death event
- org.bukkit.event.entity.EntityDeathEvent deathEvent = CraftEventFactory.callEntityDeathEvent(this, this.drops); // Paper