From 770fcf28b7c116660d7631e2f8ca67ccc119c985 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 7 Jul 2017 22:30:39 +0100 Subject: [PATCH] Fixed Popup being made twice --- locale/ExpGaming-Core/GUI/ExpGaming - Popup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/GUI/ExpGaming - Popup.lua b/locale/ExpGaming-Core/GUI/ExpGaming - Popup.lua index 164629ef..9fe10e6d 100644 --- a/locale/ExpGaming-Core/GUI/ExpGaming - Popup.lua +++ b/locale/ExpGaming-Core/GUI/ExpGaming - Popup.lua @@ -69,6 +69,6 @@ function draw_frame.popup(style,args) end end --used to make the popup area -Event.register(defines.events.on_player_joined_game,function(event) mod_gui.get_frame_flow(game.players[event.player_index]).add{name='popups',type='flow',direction='vertical'} end) +Event.register(defines.events.on_player_joined_game,function(event) if not mod_gui.get_frame_flow(game.players[event.player_index]).popups then mod_gui.get_frame_flow(game.players[event.player_index]).add{name='popups',type='flow',direction='vertical'} end end) --Please Only Edit Above This Line----------------------------------------------------------- return credits \ No newline at end of file