From 3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a Mon Sep 17 00:00:00 2001 From: TeTpaAka Date: Sat, 14 Nov 2015 12:00:52 +0100 Subject: Allow craft replacements to use groups --- src/craftdef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/craftdef.cpp') diff --git a/src/craftdef.cpp b/src/craftdef.cpp index a39bfb37d..67c3ae62a 100644 --- a/src/craftdef.cpp +++ b/src/craftdef.cpp @@ -214,7 +214,7 @@ static void craftDecrementOrReplaceInput(CraftInput &input, for (std::vector >::iterator j = pairs.begin(); j != pairs.end(); ++j) { - if (item.name == craftGetItemName(j->first, gamedef)) { + if (inputItemMatchesRecipe(item.name, j->first, gamedef->idef())) { if (item.count == 1) { item.deSerialize(j->second, gamedef->idef()); found_replacement = true; -- cgit v1.2.3