I've wrote this debug code:
Code: Select all
-- is possible to make it?
local bad_list = {}
for key, ingredients_list in pairs (all_ingredients) do
for i, ingredient_name in pairs (ingredients_list) do
if all_results and all_results[key] then
if not (is_value_in_list (ingredient_name, all_results[key])) then
if not bad_list[key] then bad_list[key] = {} end
bad_list[key][#bad_list[key]+1] = ingredient_name
end
end
end
end
log ('bad_list: ' .. serpent.block (bad_list))
Code: Select all
bad_list: {
fluid = {
"crude-oil",
"water",
"steam"
},
item = {
"copper-ore",
"iron-ore",
"stone",
"raw-wood",
"coal",
"uranium-ore",
"used-up-uranium-fuel-cell"
}
}