Skip to content

Commit 6bc9e02

Browse files
committed
Fix all interstellar construction turrets being invalidated by GC
1 parent c312319 commit 6bc9e02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mods/se-interstellar-construction-requests-fulfillment/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "se-interstellar-construction-requests-fulfillment",
33
"title": "Space Exploration - interstellar construction requests fulfillment",
44
"description": "Keeping building equipment stocked at every planet is tedious, just shoot it there from nauvis.",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"author": "Quezler",
77
"factorio_version": "1.1",
88
"dependencies": [

mods/se-interstellar-construction-requests-fulfillment/scripts/handler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ end
210210

211211
function Handler.gc(event)
212212
for unit_number, struct in pairs(global.structs) do
213-
if not struct.valid then
213+
if not struct.entity.valid then
214214
log('garbage collected struct #' .. unit_number)
215215
global.structs[unit_number] = nil
216216
end

0 commit comments

Comments
 (0)