mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-28 17:27:20 +01:00
Fix recipe being always null in PrepareItemCraftEvent from the api (#12237)
This commit is contained in:
parent
0a4eb8f3bb
commit
7a3d0c4e98
1 changed files with 1 additions and 0 deletions
|
@ -1725,6 +1725,7 @@ public final class CraftServer implements Server {
|
|||
|
||||
if (recipe.isPresent()) {
|
||||
RecipeHolder<CraftingRecipe> recipeCrafting = recipe.get();
|
||||
inventoryCrafting.setCurrentRecipe(recipeCrafting);
|
||||
if (craftResult.setRecipeUsed(craftPlayer.getHandle(), recipeCrafting)) {
|
||||
itemstack = recipeCrafting.value().assemble(inventoryCrafting.asCraftInput(), craftWorld.getHandle().registryAccess());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue