forked from Mirrorlandia_minetest/minetest
Allow craft replacements to use groups
This commit is contained in:
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user