From aa22d67aa3bb92289c90566fb1a74ab848e86f52 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 15 Mar 2023 18:43:20 +1100 Subject: [PATCH] Fix crash with 1.20 smithing table By: md_5 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 7a37c193fc..d59ff11649 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -1484,7 +1484,7 @@ public class CraftEventFactory { public static PrepareSmithingEvent callPrepareSmithingEvent(InventoryView view, ItemStack item) { PrepareSmithingEvent event = new PrepareSmithingEvent(view, CraftItemStack.asCraftMirror(item).clone()); event.getView().getPlayer().getServer().getPluginManager().callEvent(event); - event.getInventory().setItem(2, event.getResult()); + event.getInventory().setResult(event.getResult()); return event; }