diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-05-09 18:21:08 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-10 22:37:05 +0200 |
commit | d17d7eba14f6a1328a3b58ee086df5ffa56304d6 (patch) | |
tree | 08cf739340644a25a409a83ed6fb8a63c5b4dfe5 /src | |
parent | 4fb4991f5e7e7430831100137288e848d181b7fc (diff) | |
download | minetest-d17d7eba14f6a1328a3b58ee086df5ffa56304d6.tar.gz minetest-d17d7eba14f6a1328a3b58ee086df5ffa56304d6.tar.bz2 minetest-d17d7eba14f6a1328a3b58ee086df5ffa56304d6.zip |
Fix cooking and fuel crafts with aliases
Diffstat (limited to 'src')
-rw-r--r-- | src/craftdef.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/craftdef.cpp b/src/craftdef.cpp index 210605198..c05a0cfb7 100644 --- a/src/craftdef.cpp +++ b/src/craftdef.cpp @@ -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 |