mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 16:19:53 +01:00
ItemChecks.isArmor should check for custom armors
This commit is contained in:
parent
2fac0170e7
commit
6f1ddee0ac
@ -254,7 +254,7 @@ public class ItemChecks {
|
||||
* @return true if the item is armor, false otherwise
|
||||
*/
|
||||
public static boolean isArmor(ItemStack is) {
|
||||
return isLeatherArmor(is) || isGoldArmor(is) || isIronArmor(is) || isDiamondArmor(is);
|
||||
return isHelmet(is) || isChestplate(is) || isPants(is) || isBoots(is);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user