Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +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:
Ursprung
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);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren