From a728ce61778476a027b19b5af0c8f703ec0d50c5 Mon Sep 17 00:00:00 2001 From: pmendl Date: Sun, 23 Oct 2022 12:37:03 +0200 Subject: [PATCH 1/3] Tireons bugfix 0.5.2 - code change itself --- scripts/entity-notes/controller.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/entity-notes/controller.lua b/scripts/entity-notes/controller.lua index b10c923..6af0051 100644 --- a/scripts/entity-notes/controller.lua +++ b/scripts/entity-notes/controller.lua @@ -173,7 +173,11 @@ function this.on_entity_destroyed(event) for index,cache in pairs(global.cache) do if not util.isValid(game.players[index]) then global.cache[index] = nil - elseif cache.openedEntityGui and cache.openedEntityGui.unit_number == unitNumber then + elseif cache.openedEntityGui + -- Tireons bugfix 0.5.2 + and cache.openedEntityGui.valid + -- bugfix end + and cache.openedEntityGui.unit_number == unitNumber then this.destroyGUI(game.players[index], cache) end end @@ -541,4 +545,4 @@ function this.on_string_translated(event) cache.translateTarget = nil end -return this \ No newline at end of file +return this From ec63733b7e9f374d616fdca04f0ec3dd7bdab4bd Mon Sep 17 00:00:00 2001 From: pmendl Date: Sun, 23 Oct 2022 12:38:48 +0200 Subject: [PATCH 2/3] Tireons bugfix 0.5.2 - version change --- info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info.json b/info.json index 022aae7..700540c 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "attach-notes", - "version": "0.5.1", + "version": "0.5.2", "factorio_version": "1.1", "title": "Attach Notes", "author": "321freddy", From 6e71e5bd79cb25bb164fc0ab0432d56674cc701d Mon Sep 17 00:00:00 2001 From: pmendl Date: Sun, 23 Oct 2022 12:42:35 +0200 Subject: [PATCH 3/3] Tireons bugfix 0.5.2 - changelog entry --- changelog.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changelog.txt b/changelog.txt index ff95ea0..686b60e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.5.2 +Date: 2022-10-23 +Bugfixes: + - Fixed crash when launching pod with cargo in Space Exploration mod + https://mods.factorio.com/mod/attach-notes/discussion/62c12765caa02a955856391a +--------------------------------------------------------------------------------------------------- Version: 0.5.1 Date: 2021-04-26 Changes: