summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorJavacraft <frelling@java-craft.com>2018-12-05 19:22:03 -0500
committerJavacraft <frelling@java-craft.com>2018-12-05 19:22:03 -0500
commit5f5a6767e8f51bfa5b1c15b0db597cd4a12bf3f2 (patch)
tree816757ce41dede3a44568ede4f2eae2d57dd2db6 /src/main/java/org
parentaa36c8417bda9bdd4812c6094895677654cff83d (diff)
downloadcraftbukkit-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.java2
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);
}
}