mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Include equipment in EntityDeathEvent loot. Fixes BUKKIT-5566
This commit is contained in:
1 parent
76e6277175
commit
5195513866
2 files changed
+23
-4
No files matched your search
@@ -798,7 +798,11 @@ public abstract class EntityLiving extends Entity {
|
||||
this.world.broadcastEntityEffect(this, (byte) 3);
|
||||
}
|
||||
|
||||
protected void dropEquipment(boolean flag, int i) {}
|
||||
// CraftBukkit start - return dropped equipment for EntityDeathEvent processing
|
||||
protected ItemStack[] dropEquipment(boolean flag, int i) {
|
||||
return new ItemStack[this.getEquipment().length];
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
public void a(Entity entity, float f, double d0, double d1) {
|
||||
if (this.random.nextDouble() >= this.getAttributeInstance(GenericAttributes.c).getValue()) {
|
||||
|
||||
Reference in new issue
Block a user