diff options
-rw-r--r-- | src/main/java/net/minecraft/server/EntityWitch.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityWitch.java b/src/main/java/net/minecraft/server/EntityWitch.java index d300ec0b..99a89411 100644 --- a/src/main/java/net/minecraft/server/EntityWitch.java +++ b/src/main/java/net/minecraft/server/EntityWitch.java @@ -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); |