diff options
author | feildmaster <admin@feildmaster.com> | 2012-03-25 06:29:23 -0500 |
---|---|---|
committer | Warren Loo <evilseph@gmail.com> | 2012-03-25 19:52:44 -0400 |
commit | b45184fdf8f08a86b67c062eee8483254c93cdff (patch) | |
tree | d80eea63b429e86f3b70468eb3c866d7c71d8431 /src/main/java/net/minecraft/server/EntityMagmaCube.java | |
parent | f1a235dcba131ff4120c544578c7e1ab08b86069 (diff) | |
download | craftbukkit-b45184fdf8f08a86b67c062eee8483254c93cdff.tar craftbukkit-b45184fdf8f08a86b67c062eee8483254c93cdff.tar.gz craftbukkit-b45184fdf8f08a86b67c062eee8483254c93cdff.tar.lz craftbukkit-b45184fdf8f08a86b67c062eee8483254c93cdff.tar.xz craftbukkit-b45184fdf8f08a86b67c062eee8483254c93cdff.zip |
[Bleeding] Fixed dropping invalid Magma Creams. Fixes BUKKIT-1336
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityMagmaCube.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMagmaCube.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMagmaCube.java b/src/main/java/net/minecraft/server/EntityMagmaCube.java index 46be9cbd..589ac2a1 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); |