Skip to content

Commit 31c218c

Browse files
committed
Fix attempt to index field 'target' (a nil value)
1 parent 6bc9e02 commit 31c218c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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.2",
5+
"version": "1.0.3",
66
"author": "Quezler",
77
"factorio_version": "1.1",
88
"dependencies": [

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function Handler.shoot(struct)
9898
end
9999

100100
function Handler.handle_construction_alert(alert)
101+
if not alert.target then return end -- attempt to index field 'target' (a nil value)
101102
if not alert.target.valid then return end -- ghost might have been removed or revived already
102103
if alert.target.name ~= "entity-ghost" then return end -- can be "item-request-proxy" or "tile-ghost"
103104

0 commit comments

Comments
 (0)