[1.1.48] migration crash electric pole -> simple-entity-with-force
Posted: Sat Dec 04, 2021 8:42 pm
Set-up:
Mod to reproduce:
Save which crashes on migration (two power poles):
Save which does not crash (single pole):
A modder was making wind turbines and changing some prototypes around.
What was expected: entity removal or migration. Not crash.
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.