From d1cff5237b6ea048024a0fc512065441cb03c2fe Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Thu, 14 Dec 2023 12:12:15 +0100 Subject: [PATCH] Fix crash related to opening equipment grids --- .../control.lua | 1 + .../aai-signal-transmission-luarendered-channel-label/info.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/aai-signal-transmission-luarendered-channel-label/control.lua b/mods/aai-signal-transmission-luarendered-channel-label/control.lua index fbc24deb..aadf6844 100644 --- a/mods/aai-signal-transmission-luarendered-channel-label/control.lua +++ b/mods/aai-signal-transmission-luarendered-channel-label/control.lua @@ -66,6 +66,7 @@ script.on_event(defines.events.on_gui_opened, function(event) local opened = player.opened if not opened then return end + if opened.object_name ~= "LuaGuiElement" then return end -- "LuaEquipmentGrid doesn't contain key name." if opened.name ~= "aai-signal-sender" then return end if not opened.children[2] then return end -- first time this element shows up its empty, so wait for the 2nd time. diff --git a/mods/aai-signal-transmission-luarendered-channel-label/info.json b/mods/aai-signal-transmission-luarendered-channel-label/info.json index 4603ff50..d241fc89 100644 --- a/mods/aai-signal-transmission-luarendered-channel-label/info.json +++ b/mods/aai-signal-transmission-luarendered-channel-label/info.json @@ -2,7 +2,7 @@ "name": "aai-signal-transmission-luarendered-channel-label", "title": "AAI Signal Transmission - luarendered channel label", "description": "Shows the selected channel on transmitters and receivers in-world.", - "version": "1.0.1", + "version": "1.0.2", "author": "Quezler", "factorio_version": "1.1", "dependencies": [