Push fuel usages back

This commit is contained in:
Jean-Patrick Guerrero 2020-07-07 17:59:16 +02:00
parent 6d332a94ac
commit 049dabe5bb

@ -580,13 +580,13 @@ local function get_usages(recipe)
local usage = copy(recipe) local usage = copy(recipe)
table_replace(usage.items, item, name) table_replace(usage.items, item, name)
usages_cache[name] = usages_cache[name] or {} usages_cache[name] = usages_cache[name] or {}
insert(usages_cache[name], usage) insert(usages_cache[name], 1, usage)
added[name] = true added[name] = true
end end
end end
elseif show_item(reg_items[item]) then elseif show_item(reg_items[item]) then
usages_cache[item] = usages_cache[item] or {} usages_cache[item] = usages_cache[item] or {}
insert(usages_cache[item], recipe) insert(usages_cache[item], 1, recipe)
end end
added[item] = true added[item] = true