mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 05:04:43 +02:00
Reworked abilityDurabilityLoss() to take an int as dmg dealt
This commit is contained in:
@ -160,7 +160,6 @@ public class WoodCutting
|
||||
|
||||
PP.addXP(SkillType.WOODCUTTING, xp, player); //Tree Feller gives nerf'd XP
|
||||
Skills.XpCheckSkill(SkillType.WOODCUTTING, player);
|
||||
Skills.abilityDurabilityLoss(player.getItemInHand());
|
||||
}
|
||||
|
||||
private static boolean treeFellerCompatible(Block block)
|
||||
@ -265,7 +264,7 @@ public class WoodCutting
|
||||
|
||||
PlayerAnimationEvent armswing = new PlayerAnimationEvent(player);
|
||||
Bukkit.getPluginManager().callEvent(armswing);
|
||||
Skills.abilityDurabilityLoss(player.getItemInHand());
|
||||
Skills.abilityDurabilityLoss(player.getItemInHand(), LoadProperties.abilityDurabilityLoss);
|
||||
if(LoadProperties.spoutEnabled)
|
||||
SpoutStuff.playSoundForPlayer(SoundEffect.POP, player, block.getLocation());
|
||||
}
|
||||
|
Reference in New Issue
Block a user