mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
[Bleeding] Fix witches dropping empty ItemStacks on death. Fixes BUKKIT-3554
This commit is contained in:
parent
a0e50c36b9
commit
1ff8132bdd
@ -142,7 +142,9 @@ public class EntityWitch extends EntityMonster implements IRangedEntity {
|
||||
l += this.random.nextInt(i + 1);
|
||||
}
|
||||
|
||||
loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(item), l));
|
||||
if (l > 0) {
|
||||
loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(item), l));
|
||||
}
|
||||
}
|
||||
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, loot);
|
||||
|
Loading…
Reference in New Issue
Block a user