mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 10:53:43 +01:00
Small fix
This commit is contained in:
parent
e941443a59
commit
6d332a94ac
4
init.lua
4
init.lua
@ -702,13 +702,15 @@ end
|
||||
|
||||
local function cache_recipes(item)
|
||||
item = reg_aliases[item] or item
|
||||
local def = reg_items[item]
|
||||
if not def then return end
|
||||
|
||||
local recipes = get_all_recipes(item) or {}
|
||||
if #recipes > 0 then
|
||||
recipes_cache[item] = recipes
|
||||
end
|
||||
|
||||
cache_drops(item, reg_items[item].drop)
|
||||
cache_drops(item, def.drop)
|
||||
cache_fuel(item)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user