From 04ea7863d492adaad9f4e8cad132c19173a29e1f Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 26 Mar 2025 18:27:01 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index b9beba2..f6631a9 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -291,7 +291,7 @@ if settings.startup['PHI-CT'].value then end) script.on_event(defines.events.on_gui_opened, function(e) - if e.entity and e.entity.opened and (e.entity.opened.type == 'inserter' or (e.entity.opened.type == 'entity-ghost' and e.entity.opened.ghost_type == 'inserter')) then + if e.entity and e.entity.opened and e.entity.opened.object_name and e.entity.opened.object_name == 'LuaEntity' and (e.entity.opened.type == 'inserter' or (e.entity.opened.type == 'entity-ghost' and e.entity.opened.ghost_type == 'inserter')) then gui.update(game.players[e.player_index], e.entity) end end)