mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Super Breaker & Giga Driller now use more durability
A configurable amount is added to the vanilla durability loss. Use `Abilities.Tools.Durability_Loss` to disable (set to 0) or set it to -1 for no durability loss while using abilities. Closes #1363
This commit is contained in:
@ -66,6 +66,10 @@ public class MiningManager extends SkillManager {
|
||||
|
||||
Material material = blockState.getType();
|
||||
|
||||
if (mcMMOPlayer.getAbilityMode(skill.getAbility())) {
|
||||
SkillUtils.handleDurabilityChange(getPlayer().getItemInHand(), Config.getInstance().getAbilityToolDamage());
|
||||
}
|
||||
|
||||
if (material != Material.GLOWING_REDSTONE_ORE && !Config.getInstance().getDoubleDropsEnabled(skill, material)) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user