mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
Fix crash with 1.20 smithing table
By: md_5 <git@md-5.net>
This commit is contained in:
parent
28c4b7531f
commit
aa22d67aa3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue