mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix cooking and fuel crafts with aliases
This commit is contained in:
parent
4fb4991f5e
commit
d17d7eba14
2 changed files with 14 additions and 6 deletions
|
@ -734,7 +734,8 @@ bool CraftDefinitionCooking::check(const CraftInput &input, IGameDef *gamedef) c
|
|||
}
|
||||
|
||||
// Check the single input item
|
||||
return inputItemMatchesRecipe(input_filtered[0], recipe, gamedef->idef());
|
||||
std::string rec_name = craftGetItemName(recipe, gamedef);
|
||||
return inputItemMatchesRecipe(input_filtered[0], rec_name, gamedef->idef());
|
||||
}
|
||||
|
||||
CraftOutput CraftDefinitionCooking::getOutput(const CraftInput &input, IGameDef *gamedef) const
|
||||
|
@ -836,7 +837,8 @@ bool CraftDefinitionFuel::check(const CraftInput &input, IGameDef *gamedef) cons
|
|||
}
|
||||
|
||||
// Check the single input item
|
||||
return inputItemMatchesRecipe(input_filtered[0], recipe, gamedef->idef());
|
||||
std::string rec_name = craftGetItemName(recipe, gamedef);
|
||||
return inputItemMatchesRecipe(input_filtered[0], rec_name, gamedef->idef());
|
||||
}
|
||||
|
||||
CraftOutput CraftDefinitionFuel::getOutput(const CraftInput &input, IGameDef *gamedef) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue