mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
For consistency with Bukkit, ItemChecks.isPants -> ItemChecks.isLeggings
This commit is contained in:
parent
6f1ddee0ac
commit
f486492c37
@ -124,7 +124,7 @@ public class Salvage {
|
|||||||
else if (ItemChecks.isChestplate(inHand)) {
|
else if (ItemChecks.isChestplate(inHand)) {
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
else if (ItemChecks.isPants(inHand)) {
|
else if (ItemChecks.isLeggings(inHand)) {
|
||||||
return 7;
|
return 7;
|
||||||
}
|
}
|
||||||
else if (ItemChecks.isBoots(inHand)) {
|
else if (ItemChecks.isBoots(inHand)) {
|
||||||
|
@ -207,7 +207,7 @@ public class ItemChecks {
|
|||||||
* @param is Item to check
|
* @param is Item to check
|
||||||
* @return true if the item is a pair of pants, false otherwise
|
* @return true if the item is a pair of pants, false otherwise
|
||||||
*/
|
*/
|
||||||
public static boolean isPants(ItemStack is) {
|
public static boolean isLeggings(ItemStack is) {
|
||||||
switch (is.getType()) {
|
switch (is.getType()) {
|
||||||
case DIAMOND_LEGGINGS:
|
case DIAMOND_LEGGINGS:
|
||||||
case GOLD_LEGGINGS:
|
case GOLD_LEGGINGS:
|
||||||
@ -254,7 +254,7 @@ public class ItemChecks {
|
|||||||
* @return true if the item is armor, false otherwise
|
* @return true if the item is armor, false otherwise
|
||||||
*/
|
*/
|
||||||
public static boolean isArmor(ItemStack is) {
|
public static boolean isArmor(ItemStack is) {
|
||||||
return isHelmet(is) || isChestplate(is) || isPants(is) || isBoots(is);
|
return isHelmet(is) || isChestplate(is) || isLeggings(is) || isBoots(is);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user