Skip to content
Snippets Groups Projects
Commit fead7a27 authored by Kahrl's avatar Kahrl
Browse files

Fix aliases not working in shapeless crafting recipes

parent 4679455c
No related branches found
No related tags found
No related merge requests found
......@@ -525,7 +525,7 @@ bool CraftDefinitionShapeless::check(const CraftInput &input, IGameDef *gamedef)
}
// Try with all permutations of the recipe
std::vector<std::string> recipe_copy = recipe;
std::vector<std::string> 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())){}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment