1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2025-01-18 02:58:37 +02:00

Fixing broken shared spawn menus. Fixed bad respawn on player rejoining game.

This commit is contained in:
Oarcinae 2017-04-28 17:38:49 -04:00
parent 94b03152ee
commit 7857a51797
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ end)
-- Player Events
----------------------------------------
script.on_event(defines.events.on_player_joined_game, function(event)
game.players[event.player_index].teleport(game.forces[MAIN_FORCE].get_spawn_position(GAME_SURFACE_NAME), GAME_SURFACE_NAME)
PlayerJoinedMessages(event)
if ENABLE_TAGS then

View File

@ -361,7 +361,7 @@ function SharedSpwnOptsGuiClick(event)
local player = game.players[event.player_index]
local buttonClicked = event.element.name
if (event.element.parent.name ~= "shared_spawn_opts") then
if (event.element.parent.name ~= "spawns_scroll_pane") then
return
end