mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 04:23:44 +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]
|
||||
if not def then return end
|
||||
|
||||
local recipes = get_all_recipes(item) or {}
|
||||
if #recipes > 0 then
|
||||
local recipes = get_all_recipes(item)
|
||||
if recipes then
|
||||
recipes_cache[item] = recipes
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user