1
0
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:
Lynn 2019-05-26 14:44:18 +02:00
parent ed1f7b9bef
commit 732941a642

View File

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