Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
[Bleeding] Fix witches dropping empty ItemStacks on death. Fixes BUKKIT-3554
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren