From b45184fdf8f08a86b67c062eee8483254c93cdff Mon Sep 17 00:00:00 2001 From: feildmaster Date: Sun, 25 Mar 2012 06:29:23 -0500 Subject: [PATCH] [Bleeding] Fixed dropping invalid Magma Creams. Fixes BUKKIT-1336 --- src/main/java/net/minecraft/server/EntityMagmaCube.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityMagmaCube.java b/src/main/java/net/minecraft/server/EntityMagmaCube.java index 46be9cbd7a..589ac2a18b 100644 --- a/src/main/java/net/minecraft/server/EntityMagmaCube.java +++ b/src/main/java/net/minecraft/server/EntityMagmaCube.java @@ -48,7 +48,9 @@ public class EntityMagmaCube extends EntitySlime { k += this.random.nextInt(i + 1); } - loot.add(new org.bukkit.inventory.ItemStack(j, k)); + if (k > 0) { + loot.add(new org.bukkit.inventory.ItemStack(j, k)); + } } CraftEventFactory.callEntityDeathEvent(this, loot);