Allow craft replacements to use groups

master
TeTpaAka 2015-11-14 12:00:52 +01:00 committed by est31
parent c19b43d4f7
commit 3f8eb5e0d0
1 changed files with 1 additions and 1 deletions

View 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;