From e3c630ecb8ee70c5c8c376e9ee55f50d0809c005 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sat, 16 Dec 2017 19:10:07 -0600 Subject: [PATCH] Fix: Anvil Bug with Custom Damage Items. (#4570) --- .../net/minecraft/inventory/ContainerRepair.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/inventory/ContainerRepair.java.patch b/patches/minecraft/net/minecraft/inventory/ContainerRepair.java.patch index d5b59f737f..65af6163c5 100644 --- a/patches/minecraft/net/minecraft/inventory/ContainerRepair.java.patch +++ b/patches/minecraft/net/minecraft/inventory/ContainerRepair.java.patch @@ -32,6 +32,15 @@ if (itemstack1.func_77984_f() && itemstack1.func_77973_b().func_82789_a(itemstack, itemstack2)) { +@@ -213,7 +217,7 @@ + l1 = 0; + } + +- if (l1 < itemstack1.func_77960_j()) ++ if (l1 < itemstack1.func_77952_i()) // vanilla uses metadata here instead of damage. + { + itemstack1.func_77964_b(l1); + i += 2; @@ -317,6 +321,7 @@ i += k; itemstack1.func_151001_c(this.field_82857_m);