mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Made requested changes
This commit is contained in:
parent
645d73d0ef
commit
b3f801d84e
@ -37,8 +37,7 @@ public class MobDropListener implements Listener {
|
||||
|
||||
Set<ItemStack> customDrops = SlimefunPlugin.getRegistry().getMobDrops(e.getEntityType());
|
||||
if (customDrops != null && !customDrops.isEmpty())
|
||||
for(ItemStack is : customDrops)
|
||||
{
|
||||
for(ItemStack is : customDrops) {
|
||||
SlimefunItem sfi = SlimefunItem.getByItem(is);
|
||||
if (sfi instanceof ChanceDrop && ((ChanceDrop)sfi).getChance() >= random)
|
||||
addDrops(p, customDrops, e.getDrops());
|
||||
|
Loading…
Reference in New Issue
Block a user