Allow craft replacements to use groups
authorTeTpaAka <TeTpaAka@users.noreply.github.com>
Sat, 14 Nov 2015 11:00:52 +0000 (12:00 +0100)
committerest31 <MTest31@outlook.com>
Sun, 15 Nov 2015 12:41:38 +0000 (13:41 +0100)
src/craftdef.cpp

index a39bfb37d417da5942a673a352db3482e00a8d1e..67c3ae62ac39205be2f37abc7f15457c1aba58d2 100644 (file)
@@ -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;