X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcraftdef.cpp;h=9cd1d8c7ef12f2823c1e6622ce1bf787638c260d;hb=58e6d25e033c76dc91aaac18fdeda92ac23fe0e1;hp=5c7c3a4659d5012ace8901179e61c331cdedafa2;hpb=4e1f50035e860a00636ca5d804c267119df99601;p=oweals%2Fminetest.git diff --git a/src/craftdef.cpp b/src/craftdef.cpp index 5c7c3a465..9cd1d8c7e 100644 --- a/src/craftdef.cpp +++ b/src/craftdef.cpp @@ -525,7 +525,7 @@ bool CraftDefinitionShapeless::check(const CraftInput &input, IGameDef *gamedef) } // Try with all permutations of the recipe - std::vector recipe_copy = recipe; + std::vector recipe_copy = craftGetItemNames(recipe, gamedef); // Start from the lexicographically first permutation (=sorted) std::sort(recipe_copy.begin(), recipe_copy.end()); //while(std::prev_permutation(recipe_copy.begin(), recipe_copy.end())){}