mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 22:03:42 +01:00
Another attempt to fix nil crash
This commit is contained in:
parent
7a8b8d19df
commit
732535c9da
4
init.lua
4
init.lua
@ -152,7 +152,7 @@ function craftguide.register_craft_type(name, def)
|
||||
end
|
||||
|
||||
local function clean_name(item)
|
||||
return match(item, "%S+")
|
||||
return match(item, "%S*")
|
||||
end
|
||||
|
||||
function craftguide.register_craft(def)
|
||||
@ -638,7 +638,7 @@ local function get_recipe_fs(data, fs)
|
||||
|
||||
fs[#fs + 1] = fmt(FMT.item_image_button,
|
||||
X, Y + (sfinv_only and 0.7 or 0),
|
||||
btn_size, btn_size, item, clean_name(item), ESC(label) or "")
|
||||
btn_size, btn_size, item, clean_name(item), ESC(label))
|
||||
|
||||
local burntime = fuel_cache[item] and fuel_cache[item].burntime
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user