mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-30 04:40:54 +02:00
Add files via upload
This commit is contained in:
parent
9ca253f6e9
commit
770ad4e02d
@ -349,7 +349,7 @@ local function on_player_joined_game(event)
|
||||
player.spectator = true
|
||||
player.force = game.forces.spectator
|
||||
if surface.is_chunk_generated({0,-190}) then
|
||||
player.teleport(surface.find_non_colliding_position("character", {0,-190}, 3, 0.5), surface)
|
||||
player.teleport(surface.find_non_colliding_position("character", game.forces.player.get_spawn_position(surface), 32, 0.5), surface)
|
||||
else
|
||||
player.teleport({0,-190}, surface)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user