3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 20:40:07 +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.
Dieser Commit ist enthalten in:
Javacraft 2018-12-05 19:22:03 -05:00
Ursprung aa36c8417b
Commit 5f5a6767e8

Datei anzeigen

@ -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);
}
}