diff options
author | Javacraft <frelling@java-craft.com> | 2018-12-05 19:22:03 -0500 |
---|---|---|
committer | Javacraft <frelling@java-craft.com> | 2018-12-05 19:22:03 -0500 |
commit | 5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2 (patch) | |
tree | 816757ce41dede3a44568ede4f2eae2d57dd2db6 /src/main/java/org | |
parent | aa36c8417bda9bdd4812c6094895677654cff83d (diff) | |
download | craftbukkit-5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2.tar craftbukkit-5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2.tar.gz craftbukkit-5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2.tar.lz craftbukkit-5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2.tar.xz craftbukkit-5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2.zip |
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.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaKnowledgeBook.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaKnowledgeBook.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaKnowledgeBook.java index e68a7d06..29471e0f 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaKnowledgeBook.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaKnowledgeBook.java @@ -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); } } |