mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 13:53:43 +01:00
Code tidy
This commit is contained in:
parent
f74956e8e7
commit
4b744e243c
4
init.lua
4
init.lua
@ -705,8 +705,8 @@ local function cache_recipes(item)
|
|||||||
local def = reg_items[item]
|
local def = reg_items[item]
|
||||||
if not def then return end
|
if not def then return end
|
||||||
|
|
||||||
local recipes = get_all_recipes(item) or {}
|
local recipes = get_all_recipes(item)
|
||||||
if #recipes > 0 then
|
if recipes then
|
||||||
recipes_cache[item] = recipes
|
recipes_cache[item] = recipes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user