1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-04 22:54:44 +02:00

ItemChecks.isArmor should check for custom armors

This commit is contained in:
bm01
2013-02-12 19:12:23 +01:00
parent 2fac0170e7
commit 6f1ddee0ac

@ -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 isLeatherArmor(is) || isGoldArmor(is) || isIronArmor(is) || isDiamondArmor(is); return isHelmet(is) || isChestplate(is) || isPants(is) || isBoots(is);
} }
/** /**