mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Allow craft replacements to use groups
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user