summaryrefslogtreecommitdiffstats
path: root/nms-patches/ShapelessRecipes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/ShapelessRecipes.patch')
-rw-r--r--nms-patches/ShapelessRecipes.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/ShapelessRecipes.patch b/nms-patches/ShapelessRecipes.patch
index bb54a3d7..d91e17c7 100644
--- a/nms-patches/ShapelessRecipes.patch
+++ b/nms-patches/ShapelessRecipes.patch
@@ -37,7 +37,7 @@
+ for (RecipeItemStack list : this.ingredients) {
+ if (list != null) {
+ net.minecraft.server.ItemStack stack = list.choices[0];
-+ recipe.addIngredient(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(stack.getItem()), stack.getData());
++ recipe.addIngredient(org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(stack.getItem()), (list.choices.length) > 1 ? 32767 : stack.getData());
+ }
+ }
+ return recipe;