- Was Remote Viewing a ship that got destroyed, forcing me back to Nauvis
- Got a lua error, from
control.lua
Access on a nil index in circuit_display.on_player_changed_surface
:
else
-- remove surface if it was removed
storage.surfaces[e.surface_index] = nil <-- This line broke, would give line numbers but I've modified the source
end
Looks like it's trying to clean up the Surface when it never actually created it due to not having the display component on it.
I fixed it by changing it to:
else
-- remove surface if it was removed
if storage.surfaces[e.surface_index] ~= nil then
storage.surfaces[e.surface_index] = nil
end
end