Fixes that remote view sets "nauvis visited" to true
This commit is contained in:
parent
6ddb7d2e27
commit
e7197e23b7
1 changed files with 2 additions and 2 deletions
|
|
@ -80,11 +80,11 @@ Init.events[defines.events.on_player_changed_surface] = function(event)
|
|||
|
||||
if player.controller_type ~= defines.controllers.character then return end
|
||||
|
||||
if player and player.surface.name == storage.target_planet then
|
||||
if player and player.physical_surface.name == storage.target_planet then
|
||||
storage.nauvis_visited = true
|
||||
end
|
||||
|
||||
if player and player.surface.name ~= "lignumis" and player.force then
|
||||
if player and player.physical_surface.name ~= "lignumis" and player.force then
|
||||
local automation = player.force.technologies["automation-science-pack"]
|
||||
if not automation.researched then
|
||||
automation.enabled = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue