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

View File

@ -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);
}
/**