From d09304e5db889f233abc5e57416119d131af0830 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 25 Mar 2017 09:51:02 +1100 Subject: [PATCH] SPIGOT-3144: Add missing PrepareAnvilEvent call. --- nms-patches/ContainerAnvil.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nms-patches/ContainerAnvil.patch b/nms-patches/ContainerAnvil.patch index 967b310389..0541e3c9e3 100644 --- a/nms-patches/ContainerAnvil.patch +++ b/nms-patches/ContainerAnvil.patch @@ -51,6 +51,15 @@ } else { if (!flag && (itemstack1.getItem() != itemstack2.getItem() || !itemstack1.f())) { - this.g.setItem(0, ItemStack.a); ++ org.bukkit.craftbukkit.event.CraftEventFactory.callPrepareAnvilEvent(getBukkitView(), ItemStack.a); // CraftBukkit + this.a = 0; + return; + } +@@ -245,7 +254,7 @@ + } + + if (flag2 && !flag1) { +- this.g.setItem(0, ItemStack.a); + org.bukkit.craftbukkit.event.CraftEventFactory.callPrepareAnvilEvent(getBukkitView(), ItemStack.a); // CraftBukkit this.a = 0; return;