Fixes that remote view sets "nauvis visited" to true

This commit is contained in:
Simon Brodtmann 2025-12-30 20:35:43 +01:00
parent 6ddb7d2e27
commit e7197e23b7

View file

@ -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