Reworked abilityDurabilityLoss() to take an int as dmg dealt

This commit is contained in:
nossr50
2012-03-04 12:21:24 -08:00
parent 07296f14d7
commit 5da59e6f0a
4 changed files with 11 additions and 9 deletions

View File

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