mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-29 12:14:43 +02:00
Removed some unnecessary casting.
This commit is contained in:
@ -84,7 +84,7 @@ public class WoodCutting {
|
||||
if (health >= 2) {
|
||||
Combat.dealDamage(player, random.nextInt(health - 1));
|
||||
}
|
||||
inHand.setDurability((short) (inHand.getType().getMaxDurability()));
|
||||
inHand.setDurability(inHand.getType().getMaxDurability());
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -96,7 +96,7 @@ public class WoodCutting {
|
||||
if (health >= 2) {
|
||||
Combat.dealDamage(player, random.nextInt(health - 1));
|
||||
}
|
||||
inHand.setDurability((short) (inHand.getType().getMaxDurability()));
|
||||
inHand.setDurability(inHand.getType().getMaxDurability());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user