Small fix

This commit is contained in:
Jean-Patrick Guerrero 2020-07-07 17:28:18 +02:00
parent e941443a59
commit 6d332a94ac

@ -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