Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "attach-notes",
"version": "0.5.1",
"version": "0.5.2",
"factorio_version": "1.1",
"title": "Attach Notes",
"author": "321freddy",
Expand Down
8 changes: 6 additions & 2 deletions scripts/entity-notes/controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -541,4 +545,4 @@ function this.on_string_translated(event)
cache.translateTarget = nil
end

return this
return this