Not sure how this should be solved. I like the idea to have night vision googles in the recipe. Altering the recipe based on the active mods feels wrong and confusing. Do you have any suggestions how this should be fixed?
I fixed it like that
-- radar-signals_2.0.8\data-final-fixes.lua
local name = "radar-signals"
if (data.raw.item[name] and data.raw.item[name].ingredients) then
for index, radar_signal_item_ingredient in data.raw.item[name].ingredients do
if (radar_signal_item_ingredient and data.raw.item[radar_signal_item_ingredients] == nil) then
table.remove(data.raw.item[name].ingredients, index)
end
end
end
if (data.raw.technology[name] and data.raw.technology[name].prerequisites) then
for index, radar_signal_item_prereq in pairs(data.raw.technology[name].prerequisites) do
if (radar_signal_item_prereq and data.raw.technology[radar_signal_item_prereq] == nil) then
table.remove(data.raw.technology[name].prerequisites, index)
end
end
end
It's a crude attempt but at least it wont affect your code overall. You could modify this and replace the missing technology and/or items with something else.