This commit is contained in:
nossr50
2019-06-10 16:14:24 -07:00
parent 1297b45ef8
commit f5f4182a90
4 changed files with 7 additions and 5 deletions

View File

@ -76,10 +76,11 @@ public class BlockListener implements Listener {
for (int i = 0; i < bonusCount; i++) {
event.getBlock().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
}
event.getBlock().removeMetadata(mcMMO.BONUS_DROPS_METAKEY, plugin);
}
}
if(event.getBlock().hasMetadata(mcMMO.BONUS_DROPS_METAKEY))
event.getBlock().removeMetadata(mcMMO.BONUS_DROPS_METAKEY, plugin);
}
/*@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)

View File

@ -73,8 +73,6 @@ public class MiningManager extends SkillManager {
return;
}
Material material = blockState.getType();
if (mcMMOPlayer.getAbilityMode(skill.getAbility())) {
SkillUtils.handleDurabilityChange(getPlayer().getInventory().getItemInMainHand(), Config.getInstance().getAbilityToolDamage());
}