mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Cleanup
This commit is contained in:
parent
d0cdc208e3
commit
93ea558ec3
@ -341,13 +341,13 @@ public class Skills {
|
|||||||
/**
|
/**
|
||||||
* Handle tool durability loss from abilities.
|
* Handle tool durability loss from abilities.
|
||||||
*
|
*
|
||||||
* @param inhand The item to damage
|
* @param inHand The item to damage
|
||||||
* @param durabilityLoss The durability to remove from the item
|
* @param durabilityLoss The durability to remove from the item
|
||||||
*/
|
*/
|
||||||
public static void abilityDurabilityLoss(ItemStack inhand, int durabilityLoss) {
|
public static void abilityDurabilityLoss(ItemStack inHand, int durabilityLoss) {
|
||||||
if (Config.getInstance().getAbilitiesDamageTools()) {
|
if (Config.getInstance().getAbilitiesDamageTools()) {
|
||||||
if (!inhand.containsEnchantment(Enchantment.DURABILITY)) {
|
if (!inHand.containsEnchantment(Enchantment.DURABILITY)) {
|
||||||
inhand.setDurability((short) (inhand.getDurability() + durabilityLoss));
|
inHand.setDurability((short) (inHand.getDurability() + durabilityLoss));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user