forked from cacklingfiend/lignumis
Prevent getting Stuck on Nauvis
This commit is contained in:
parent
675136ee06
commit
e6a0f20feb
4 changed files with 23 additions and 42 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue