Skip to content
Snippets Groups Projects
Commit 3f8eb5e0 authored by TeTpaAka's avatar TeTpaAka Committed by est31
Browse files

Allow craft replacements to use groups

parent c19b43d4
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment