Skip to content

Commit

Permalink
Allow craft replacements to use groups
Browse files Browse the repository at this point in the history
  • Loading branch information
TeTpaAka authored and est31 committed Nov 15, 2015
1 parent c19b43d commit 3f8eb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/craftdef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f8eb5e

Please sign in to comment.