mirror of
https://github.com/minetest/minetest.git
synced 2024-11-09 17:23:45 +01:00
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
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user