diff -r -U 3 minecraft_server\net\minecraft\inventory\ContainerPlayer.java minecraft_server_patched\net\minecraft\inventory\ContainerPlayer.java --- minecraft_server\net\minecraft\inventory\ContainerPlayer.java +++ minecraft_server_patched\net\minecraft\inventory\ContainerPlayer.java @@ -28,7 +28,7 @@ this.field_82862_h = p_i1819_3_; this.func_75146_a(new SlotCrafting(p_i1819_1_.field_70458_d, this.field_75181_e, this.field_75179_f, 0, 144, 36)); - final int var4; + int var4; int var5; for(var4 = 0; var4 < 2; ++var4) { for(var5 = 0; var5 < 2; ++var5) { @@ -37,6 +37,7 @@ } for(var4 = 0; var4 < 4; ++var4) { + final int var44 = var4; this.func_75146_a(new Slot(p_i1819_1_, p_i1819_1_.func_70302_i_() - 1 - var4, 8, 8 + var4 * 18) { private static final String __OBFID = "CL_00001755"; @@ -45,7 +46,7 @@ return 1; } 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 == var4:(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:var4 == 0)); + return p_75214_1_ == null?false:(p_75214_1_.func_77973_b() instanceof ItemArmor?((ItemArmor)p_75214_1_.func_77973_b()).field_77881_a == var44:(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:var44 == 0)); } }); }