mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-15 07:01:36 +08: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
@ -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…
Reference in New Issue
Block a user