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:
parent
94b03152ee
commit
7857a51797
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user