SPIGOT-7922: ExactChoice recipe fails to be added
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
+ return this.itemStacks;
|
||||
+ }
|
||||
+
|
||||
+ public static RecipeItemStack ofStacks(Stream<ItemStack> stacks) {
|
||||
+ RecipeItemStack recipe = RecipeItemStack.of(stacks.map(ItemStack::getItem));
|
||||
+ recipe.itemStacks = stacks.toList();
|
||||
+ public static RecipeItemStack ofStacks(List<ItemStack> stacks) {
|
||||
+ RecipeItemStack recipe = RecipeItemStack.of(stacks.stream().map(ItemStack::getItem));
|
||||
+ recipe.itemStacks = stacks;
|
||||
+ return recipe;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
Reference in New Issue
Block a user