diff --git a/changelog.txt b/changelog.txt index 178d69f..42d462b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 1.0.31 +Date: 23.02.2024 + Bugfixes: + - fixed a crash on the KI gui +--------------------------------------------------------------------------------------------------- Version: 1.0.30 Date: 20.02.2024 Features: diff --git a/info.json b/info.json index b6583c3..7b4f661 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "248k", - "version": "1.0.30", + "version": "1.0.31", "title": "248k Mod", "author": "PreLeyZero", "factorio_version": "1.1", diff --git a/scripts/gui.lua b/scripts/gui.lua index 197deb3..d88f467 100644 --- a/scripts/gui.lua +++ b/scripts/gui.lua @@ -603,6 +603,10 @@ function gui.on_change(e) end end + if not e.element.valid then + return + end + local parent_gui = e.element.tags.parent_gui local action = e.element.tags.action if parent_gui == "248k_migration_notice" then