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(); }