Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-24 15:20:11 +01:00
[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);
|
l += this.random.nextInt(i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (l > 0) {
|
||||||
loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(item), l));
|
loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(item), l));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, loot);
|
org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, loot);
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren