mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Fixed dropping invalid Magma Creams. Fixes BUKKIT-1336
This commit is contained in:
1 parent
f1a235dcba
commit
b45184fdf8
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user