mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
Ensure window is closed when a player rejoins
This commit is contained in:
parent
ed1f7b9bef
commit
732941a642
@ -60,6 +60,12 @@ local function player_joined(event)
|
||||
return
|
||||
end
|
||||
|
||||
local main_frame = player.gui.center[main_frame_name]
|
||||
|
||||
if main_frame then
|
||||
Gui.destroy(main_frame)
|
||||
end
|
||||
|
||||
Server.try_get_data_timeout('player_settings', player.name, on_player_settings_get, 30)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user