1
0
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:
manolck 2020-02-23 22:44:20 +01:00 committed by GitHub
parent 9ca253f6e9
commit 770ad4e02d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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