Fix issues with Recipe API

This commit is contained in:
Jake Potrebic
2024-05-12 15:49:36 -07:00
parent 977543c545
commit 5d843f3120
4 changed files with 45 additions and 4 deletions

View File

@@ -70,7 +70,7 @@
+ char c = 'a';
+ for (Optional<Ingredient> list : this.pattern.ingredients()) {
+ RecipeChoice choice = CraftRecipe.toBukkit(list);
+ if (choice != null) {
+ if (choice != RecipeChoice.empty()) { // Paper
+ recipe.setIngredient(c, choice);
+ }
+