If you throw this code in data-final-fixes then this fixes this:
for i, name in pairs(data.raw.gate) do
table.insert (name.resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
end
for i, name in pairs(data.raw.wall) do
table.insert (name.resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
end
for i, name in pairs(data.raw["land-mine"]) do
if name.resistances then
table.insert (name.resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
else
name.resistances ={ {
type = "toxic",
decrease = 0,
percent = 100
}}
end
end
if data.raw["fluid-turret"]["blender-turret"] then
table.insert (data.raw["fluid-turret"]["blender-turret"].resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
end
Might also need some hidden optional dependencies to force load order, but this will do 99% of it.