From feee11f32e3b0f411464da26ab12f2839be92175 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 26 Mar 2025 18:20:49 +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 5ad5b70..b9beba2 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -308,7 +308,7 @@ if settings.startup['PHI-CT'].value then end) script.on_event(defines.events.on_player_rotated_entity, function(e) - if e.entity and e.entity.object_name == 'LuaEntity' and (e.entity.type == 'inserter' or (e.entity.type == 'entity-ghost' and e.entity.ghost_type == 'inserter')) then + if e.entity and (e.entity.type == 'inserter' or (e.entity.type == 'entity-ghost' and e.entity.ghost_type == 'inserter')) then for _, player in pairs(game.players) do if (e.entity and player.opened == e.entity) or (not e.entity and (player.opened and player.opened.object_name == 'LuaEntity' and (player.opened.type == 'inserter' or (player.opened.type == 'entity-ghost' and player.opened.ghost_type == 'inserter')))) then gui.update(player, player.opened)