[1.1.53] Crash changing laser turret energy source to lamp.energy_source
Posted: Wed Feb 09, 2022 1:09 pm
Got a crash when changing the energy_source of a laser turret to a lamps energy source. I don't really expect it to work however it does not throw an error during the data stage, instead it crashes when powering a laser turret.
minimum code to reproduce the crash:
minimum code to reproduce the crash:
Code: Select all
--data.lua
local lamp = data.raw["lamp"]["small-lamp"]
data.raw["electric-turret"]["laser-turret"].energy_source = lamp.energy_source