From 3a9561bf24fb4fc12f77ede0814c5792df1bd8f7 Mon Sep 17 00:00:00 2001 From: DerFrZocker Date: Fri, 27 Aug 2021 19:14:09 +1000 Subject: [PATCH] SPIGOT-6686: Changes in MaximumRepairCost for Anvil Rename cause inconsistency --- .../net/minecraft/world/inventory/ContainerAnvil.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nms-patches/net/minecraft/world/inventory/ContainerAnvil.patch b/nms-patches/net/minecraft/world/inventory/ContainerAnvil.patch index 2335847f8..5dba39918 100644 --- a/nms-patches/net/minecraft/world/inventory/ContainerAnvil.patch +++ b/nms-patches/net/minecraft/world/inventory/ContainerAnvil.patch @@ -73,16 +73,17 @@ itemstack1 = ItemStack.EMPTY; } -@@ -276,7 +284,7 @@ +@@ -276,7 +284,8 @@ EnchantmentManager.a(map, itemstack1); } - this.resultSlots.setItem(0, itemstack1); + org.bukkit.craftbukkit.event.CraftEventFactory.callPrepareAnvilEvent(getBukkitView(), itemstack1); // CraftBukkit ++ updateInventory(); // CraftBukkit - SPIGOT-6686: Always send completed inventory to stay in sync with client this.d(); } } -@@ -303,4 +311,18 @@ +@@ -303,4 +312,18 @@ public int m() { return this.cost.get(); }