diff options
-rw-r--r-- | src/craftdef.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::pair<std::string, std::string> >::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; |