Merge pull request #400 from TfT-02/master

Various fixed for issues in the issue tracker
This commit is contained in:
TfT_02
2013-01-01 14:17:06 -08:00
4 changed files with 60 additions and 18 deletions

View File

@ -84,6 +84,8 @@ public class WoodCutting {
if (health >= 2) {
Combat.dealDamage(player, random.nextInt(health - 1));
}
inHand.setDurability((short) (inHand.getType().getMaxDurability()));
return;
}
}
else if ((inHand.getDurability() + durabilityLoss >= inHand.getType().getMaxDurability()) || inHand.getType().equals(Material.AIR)) {
@ -94,6 +96,8 @@ public class WoodCutting {
if (health >= 2) {
Combat.dealDamage(player, random.nextInt(health - 1));
}
inHand.setDurability((short) (inHand.getType().getMaxDurability()));
return;
}
/* Damage the tool */