From 6d332a94ac3070f80cf1fd7bde82a99e88bb945e Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 7 Jul 2020 17:28:18 +0200 Subject: [PATCH] Small fix --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1e2f5bf..7200bc3 100644 --- a/init.lua +++ b/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