mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-15 12:02:49 +01:00
Fix setRecipes(List) not setting Knowledge Book recipes.
Iterator source for recipe NamespacedKeys is changed to use method parameter 'recipes' specifying recipes to be added, rather than class property 'recipes', to which recipes are added.
This commit is contained in:
parent
aa36c8417b
commit
5f5a6767e8
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ public class CraftMetaKnowledgeBook extends CraftMetaItem implements KnowledgeBo
|
|||
@Override
|
||||
public void setRecipes(List<NamespacedKey> recipes) {
|
||||
this.recipes.clear();
|
||||
for (NamespacedKey recipe : this.recipes) {
|
||||
for (NamespacedKey recipe : recipes) {
|
||||
addRecipe(recipe);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue