1
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:
dniym 2020-07-05 12:35:40 -04:00
parent 645d73d0ef
commit b3f801d84e

View File

@ -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());