More safeguard

This commit is contained in:
Jean-Patrick Guerrero 2020-04-16 16:20:25 +02:00
parent 109965175d
commit 87177d0d7f

View File

@ -1476,8 +1476,10 @@ local function show_item(def)
end end
local function get_init_items() local function get_init_items()
if autocache == false then local init_items_bak = storage:get "init_items"
init_items = dslz(storage:get "init_items")
if autocache == false and init_items_bak then
init_items = dslz(init_items_bak)
fuel_cache = dslz(storage:get "fuel_cache") fuel_cache = dslz(storage:get "fuel_cache")
usages_cache = dslz(storage:get "usages_cache") usages_cache = dslz(storage:get "usages_cache")
recipes_cache = dslz(storage:get "recipes_cache") recipes_cache = dslz(storage:get "recipes_cache")