Fix escape and E not closing the combinator GUI when the manager is enabled

This commit is contained in:
Patrick Wrobel
2023-06-23 02:07:16 -04:00
parent bfb417d0f5
commit 204ec6391b
2 changed files with 9 additions and 3 deletions

View File

@@ -201,9 +201,6 @@ function gui_opened(comb, player)
combinator_update(global, comb, true)
local rootgui = player.gui.screen
if rootgui[COMBINATOR_NAME] then
rootgui[COMBINATOR_NAME].destroy()
end
local selected_index, signal, switch_state, bits = get_comb_gui_settings(comb)
local _, main_window = flib_gui.add(rootgui, {