Fix entity armor not showing on death animation (#7355)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user