mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
Fix crafting (and server icon)
This commit is contained in:
@@ -33,6 +33,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
throw new IllegalArgumentException("Unknown recipe stack instance " + bukkit);
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public interface CraftRecipe extends Recipe {
|
||||
}
|
||||
|
||||
public static RecipeChoice toBukkit(Optional<Ingredient> list) {
|
||||
- return list.map(CraftRecipe::toBukkit).orElse(null);
|
||||
+ return list.map(CraftRecipe::toBukkit).orElse(RecipeChoice.empty()); // Paper - fix issue with recipe API
|
||||
}
|
||||
|
||||
public static RecipeChoice toBukkit(Ingredient list) {
|
||||
List<Holder<Item>> items = list.items();
|
||||
|
||||
if (items.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user