diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index ccbae70..b9067e5 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -34,11 +34,7 @@ local function gui_update(player, entity) return end - if entity.type and entity.type ~= 'inserter' then - return - end - - if entity.type and entity.type == 'entity-ghost' and entity.ghost_type ~= 'inserter' then + if entity.type and (entity.type ~= 'inserter' or (entity.type == 'entity-ghost' and entity.ghost_type ~= 'inserter')) then return end