summaryrefslogtreecommitdiff
path: root/src/craftdef.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-08-25 18:14:26 +0200
committerKahrl <kahrl@gmx.net>2013-08-25 18:14:26 +0200
commitfead7a27ca14e0f657d4c7975faf207f4b881031 (patch)
tree6ccbe05040c034ef47526f925b3010a096d52e4a /src/craftdef.cpp
parent4679455c3fcb036b972b1296d3c42d5b0f157c31 (diff)
downloadminetest-fead7a27ca14e0f657d4c7975faf207f4b881031.tar.gz
minetest-fead7a27ca14e0f657d4c7975faf207f4b881031.tar.bz2
minetest-fead7a27ca14e0f657d4c7975faf207f4b881031.zip
Fix aliases not working in shapeless crafting recipes
Diffstat (limited to 'src/craftdef.cpp')
-rw-r--r--src/craftdef.cpp2
1 files changed, 1 insertions, 1 deletions
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<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())){}