Skip to content

Commit

Permalink
Fix crash related to opening equipment grids
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 14, 2023
1 parent 0364b11 commit d1cff52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit d1cff52

Please sign in to comment.