Skip to content

Commit

Permalink
Fix all interstellar construction turrets being invalidated by GC
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 8, 2023
1 parent c312319 commit 6bc9e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "se-interstellar-construction-requests-fulfillment",
"title": "Space Exploration - interstellar construction requests fulfillment",
"description": "Keeping building equipment stocked at every planet is tedious, just shoot it there from nauvis.",
"version": "1.0.1",
"version": "1.0.2",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ end

function Handler.gc(event)
for unit_number, struct in pairs(global.structs) do
if not struct.valid then
if not struct.entity.valid then
log('garbage collected struct #' .. unit_number)
global.structs[unit_number] = nil
end
Expand Down

0 comments on commit 6bc9e02

Please sign in to comment.