mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Merge pull request #400 from TfT-02/master
Various fixed for issues in the issue tracker
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user