From 736b4daa770cff74230394a9f8a205e91da5d4be Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 25 Jun 2026 22:47:24 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 8281896..ccbae70 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -17,16 +17,10 @@ if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].valu end local function gui_create(player) - if player.gui.relative.phi_cl_inserter_config then - player.gui.relative.phi_cl_inserter_config.destroy() - end - - if player.gui.relative.phi_cl_combinator_config then - player.gui.relative.phi_cl_combinator_config.destroy() - end - - if player.gui.relative.phi_cl_inserter then - player.gui.relative.phi_cl_inserter.destroy() + for _, v in pairs({'phi_cl_inserter_config', 'phi_cl_combinator_config', 'phi_cl_inserter'}) do + if player.gui.relative[v] then + player.gui.relative[v].destroy() + end end do