From fead7a27ca14e0f657d4c7975faf207f4b881031 Mon Sep 17 00:00:00 2001
From: Kahrl <kahrl@gmx.net>
Date: Sun, 25 Aug 2013 18:14:26 +0200
Subject: [PATCH] Fix aliases not working in shapeless crafting recipes

---
 src/craftdef.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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())){}
-- 
GitLab