From a524a11e292c5be53ce809eea3586b855a22284b Mon Sep 17 00:00:00 2001 From: alek13 Date: Thu, 7 Sep 2023 00:33:08 +0300 Subject: [PATCH] Add checks for alias recipes. Fix sign_wall & door_steel recipes. Fixes lord-server/lord#1127 --- minetest_types.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minetest_types.lua b/minetest_types.lua index 35158da..b089a66 100644 --- a/minetest_types.lua +++ b/minetest_types.lua @@ -1542,13 +1542,14 @@ function minetest.get_craft_recipe(output) end --- * `items`: indexed [1-9] table with recipe items --- * `output`: string with item name and quantity --- * Example query for `"default:gold_ingot"` will return table: ---- +--- ```lua --- { --- [1]={method = "cooking", width = 3, output = "default:gold_ingot", --- items = {1 = "default:gold_lump"}}, --- [2]={method = "normal", width = 1, output = "default:gold_ingot 9", --- items = {1 = "default:goldblock"}} --- } +--- ``` --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5304-L5319) function minetest.get_all_craft_recipes(query_item) end