Skip to content
Permalink
Browse files

Allow craft replacements to use groups

  • Loading branch information
TeTpaAka authored and est31 committed Nov 14, 2015
1 parent c19b43d commit 3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 3f8eb5e

Please sign in to comment.
You can’t perform that action at this time.