mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-23 03:13:44 +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)
|
local function cache_recipes(item)
|
||||||
item = reg_aliases[item] or 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 {}
|
local recipes = get_all_recipes(item) or {}
|
||||||
if #recipes > 0 then
|
if #recipes > 0 then
|
||||||
recipes_cache[item] = recipes
|
recipes_cache[item] = recipes
|
||||||
end
|
end
|
||||||
|
|
||||||
cache_drops(item, reg_items[item].drop)
|
cache_drops(item, def.drop)
|
||||||
cache_fuel(item)
|
cache_fuel(item)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user