--- ../src-base/minecraft/net/minecraft/inventory/ContainerPlayer.java
+++ ../src-work/minecraft/net/minecraft/inventory/ContainerPlayer.java
@@ -47,7 +47,8 @@
                 }
                 public boolean func_75214_a(ItemStack p_75214_1_)
                 {
-                    return p_75214_1_ == null ? false : (p_75214_1_.func_77973_b() instanceof ItemArmor ? ((ItemArmor)p_75214_1_.func_77973_b()).field_77881_a == k : (p_75214_1_.func_77973_b() != Item.func_150898_a(Blocks.field_150423_aK) && p_75214_1_.func_77973_b() != Items.field_151144_bL ? false : k == 0));
+                    if (p_75214_1_ == null) return false;
+                    return p_75214_1_.func_77973_b().isValidArmor(p_75214_1_, k, field_82862_h);
                 }
                 @SideOnly(Side.CLIENT)
                 public String func_178171_c()
