Hi,
I get the following message when a track is destroyed by aliens and rebuilt by a robot.
Error while running event RailPowerSystem::on_robot_built_entity (ID 14)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
RailPowerSystem/libs/entityLibs.lua:3: in function 'distance'
RailPowerSystem/methods/railFunctions.lua:22: in function 'connectCloserNodes'
RailPowerSystem/methods/railFunctions.lua:115: in function 'connectToOtherRails'
RailPowerSystem/methods/globalEvents.lua:37: in function 'OnBuilt'
RailPowerSystem/control.lua:42: in function <RailPowerSystem/control.lua:37>
What can i do to prevent this?
Thank you