mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-20 06:22:13 +01:00
[Bleeding] Fixed dropping invalid Magma Creams. Fixes BUKKIT-1336
This commit is contained in:
parent
f1a235dcba
commit
b45184fdf8
@ -48,8 +48,10 @@ public class EntityMagmaCube extends EntitySlime {
|
|||||||
k += this.random.nextInt(i + 1);
|
k += this.random.nextInt(i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (k > 0) {
|
||||||
loot.add(new org.bukkit.inventory.ItemStack(j, k));
|
loot.add(new org.bukkit.inventory.ItemStack(j, k));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CraftEventFactory.callEntityDeathEvent(this, loot);
|
CraftEventFactory.callEntityDeathEvent(this, loot);
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Loading…
Reference in New Issue
Block a user