geforkt von Mirrors/Paper
Fix crash with 1.20 smithing table
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
28c4b7531f
Commit
aa22d67aa3
@ -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;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren