Removed unnecessary calls

This commit is contained in:
bm01 2013-01-19 20:44:51 +01:00
parent b9bf3f96d2
commit 0545ed434d
2 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ public class Excavation {
if (player == null)
return;
Skills.abilityDurabilityLoss(player.getItemInHand(), Config.getInstance().getAbilityToolDamage());
Skills.abilityDurabilityLoss(player.getItemInHand(), Misc.toolDurabilityLoss);
if (!mcMMO.placeStore.isTrue(block) && Misc.blockBreakSimulate(block, player, true)) {
FakePlayerAnimationEvent armswing = new FakePlayerAnimationEvent(player);

View File

@ -492,7 +492,7 @@ public class WoodCutting {
mcMMO.p.getServer().getPluginManager().callEvent(armswing);
if (Config.getInstance().getWoodcuttingRequiresTool()) {
Skills.abilityDurabilityLoss(player.getItemInHand(), Config.getInstance().getAbilityToolDamage());
Skills.abilityDurabilityLoss(player.getItemInHand(), Misc.toolDurabilityLoss);
}
if (mcMMO.spoutEnabled) {
@ -505,7 +505,7 @@ public class WoodCutting {
for (Block x : toBeFelled) {
if (Misc.getRandom().nextInt(level + 1) > 0) {}//Don't add durabilityLoss, because Unbreaking enchantment does it's work.
else if (x.getType().equals(Material.LOG) || (Config.getInstance().getBlockModsEnabled() && ModChecks.isCustomLogBlock(x))) {
durabilityLoss = durabilityLoss + Config.getInstance().getAbilityToolDamage();
durabilityLoss += Misc.toolDurabilityLoss;
}
}