set up
Start of error:
Only code used:
Code: Select all
if true then
local sep = data.raw["electric-pole"]["small-electric-pole"]
data.raw["electric-pole"]["small-electric-pole"] = nil
sep.type = "simple-entity-with-force"
sep.fast_replaceable_group = nil
sep.next_upgrade = nil
data:extend{sep}
end
A modder was making wind turbines and changing some prototypes around.
What was expected: entity removal or migration. Not crash.