diff --git a/API.md b/API.md index b6e5073..e7fe6ea 100644 --- a/API.md +++ b/API.md @@ -2,6 +2,9 @@ ### Custom recipes +Custom recipes are nonconventional crafts outside the main crafting grid. +They can be registered in-game dynamically and have a size beyond 3x3 items. + #### Registering a custom crafting type (example) ```Lua diff --git a/init.lua b/init.lua index 20c29ff..8b296b8 100644 --- a/init.lua +++ b/init.lua @@ -59,7 +59,6 @@ craftguide.background = "craftguide_bg_full.png" local PNG = { bg = "craftguide_bg.png", - bg_full = craftguide.background, search = "craftguide_search_icon.png", clear = "craftguide_clear_icon.png", prev = "craftguide_next_icon.png^\\[transformFX", @@ -580,12 +579,12 @@ local function make_formspec(name) if not sfinv_only then fs[#fs + 1] = fmt([[ - size[%f,%f;] + size[9.5,8.4] no_prepend[] bgcolor[#00000000;false] background[1,1;1,1;%s;true%s] ]], - 9.5, 8.4, PNG.bg_full, DEV_CORE and ";10" or "") + craftguide.background, DEV_CORE and ";10" or "") end fs[#fs + 1] = fmt([[