2 for _, ent in pairs(data.raw["unit-spawner"]) do
3 if ent and ent.autoplace then
4 ent.autoplace.probability_expression = '0'
8 for _, ent in pairs(data.raw.turret) do
9 if ent.subgroup == "enemies" and ent and ent.autoplace then
10 ent.autoplace.probability_expression = '0'