geforkt von Mirrors/Paper
[Bleeding] Fix witches dropping empty ItemStacks on death. Fixes BUKKIT-3554
Dieser Commit ist enthalten in:
Ursprung
a0e50c36b9
Commit
1ff8132bdd
@ -142,8 +142,10 @@ public class EntityWitch extends EntityMonster implements IRangedEntity {
|
||||
l += this.random.nextInt(i + 1);
|
||||
}
|
||||
|
||||
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);
|
||||
// CraftBukkit end
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren