This commit is contained in:
2025-10-09 02:05:45 +09:00
parent 7b6ca83c2f
commit 743fb4279a

View File

@@ -289,8 +289,18 @@ end)
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
script.on_event(defines.events.on_player_created, function(event)
gui_create(game.players[event.player_index])
if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SS' then
game.players[event.player_index].teleport({x=0, y=0}, storage.platform.surface.name)
end
end)
if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SS' then
script.on_event(defines.events.on_cargo_pod_finished_ascending, function(event)
event.cargo_pod.destroy()
end)
end
script.on_event(defines.events.on_gui_opened, function(event)
local player = game.players[event.player_index]