Prevent getting Stuck on Nauvis

This commit is contained in:
Simon Brodtmann 2025-02-15 13:21:01 +01:00
parent 675136ee06
commit e6a0f20feb
4 changed files with 23 additions and 42 deletions

View file

@ -91,6 +91,14 @@ Init.events[defines.events.on_player_changed_surface] = function(event)
if player and player.surface.name == "nauvis" then
storage.nauvis_visited = true
end
if player and player.surface.name ~= "lignumis" and player.force then
local automation = player.force.technologies["automation-science-pack"]
if not automation.researched then
automation.enabled = true
automation.researched = true
end
end
end