Skip to content

Commit fead7a2

Browse files
committedAug 25, 2013
Fix aliases not working in shapeless crafting recipes
1 parent 4679455 commit fead7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/craftdef.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ bool CraftDefinitionShapeless::check(const CraftInput &input, IGameDef *gamedef)
525525
}
526526

527527
// Try with all permutations of the recipe
528-
std::vector<std::string> recipe_copy = recipe;
528+
std::vector<std::string> recipe_copy = craftGetItemNames(recipe, gamedef);
529529
// Start from the lexicographically first permutation (=sorted)
530530
std::sort(recipe_copy.begin(), recipe_copy.end());
531531
//while(std::prev_permutation(recipe_copy.begin(), recipe_copy.end())){}

0 commit comments

Comments
 (0)
Please sign in to comment.