From 838b01cf812eeb8913ec5912ecdefbcd8bbfc1ff Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 25 Jun 2026 22:58:00 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index b9067e5..c32bd8c 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -30,11 +30,15 @@ local function gui_create(player) end local function gui_update(player, entity) - if not entity.valid then + if not entity.valid or not entity.type then return end - if entity.type and (entity.type ~= 'inserter' or (entity.type == 'entity-ghost' and entity.ghost_type ~= 'inserter')) then + if entity.type ~= 'inserter' then + return + end + + if entity.type == 'entity-ghost' and entity.ghost_type ~= 'inserter' then return end