Allow craft replacements to use groups

This commit is contained in:
TeTpaAka 2015-11-14 12:00:52 +01:00 committed by est31
parent c19b43d4f7
commit 3f8eb5e0d0

@ -214,7 +214,7 @@ static void craftDecrementOrReplaceInput(CraftInput &input,
for (std::vector<std::pair<std::string, std::string> >::iterator for (std::vector<std::pair<std::string, std::string> >::iterator
j = pairs.begin(); j = pairs.begin();
j != pairs.end(); ++j) { j != pairs.end(); ++j) {
if (item.name == craftGetItemName(j->first, gamedef)) { if (inputItemMatchesRecipe(item.name, j->first, gamedef->idef())) {
if (item.count == 1) { if (item.count == 1) {
item.deSerialize(j->second, gamedef->idef()); item.deSerialize(j->second, gamedef->idef());
found_replacement = true; found_replacement = true;