Skip to content

Commit 1af4234

Browse files
committed
Support delivering buildings for fake factorissimo factories
1 parent 91d1651 commit 1af4234

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
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.1.1",
5+
"version": "1.1.2",
66
"author": "Quezler",
77
"factorio_version": "1.1",
88
"dependencies": [
99
"space-exploration",
10-
"space-exploration-scripts >= 1.0.8"
10+
"space-exploration-scripts >= 1.0.8",
11+
"? factoryplanner-is-exportable-to-fake-factorissimo"
1112
]
1213
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ function Handler.on_configuration_changed(event)
3939
Handler.regenerate_item_request_proxy_whitelist()
4040
end
4141

42+
local entity_name_bypasses_proxy_whitelist = {
43+
['fietff-container-1'] = true,
44+
}
4245
function Handler.regenerate_item_request_proxy_whitelist()
4346
global.item_request_proxy_whitelist = {}
4447
local module_prototypes = game.get_filtered_item_prototypes({{filter = "type", type = "module"}})
@@ -78,7 +81,7 @@ function Handler.items_to_place_this(alert_target)
7881
elseif alert_target.name == "item-request-proxy" then
7982
local items_to_place_this = {}
8083
for name, count in pairs(alert_target.item_requests) do
81-
if global.item_request_proxy_whitelist[name] then
84+
if global.item_request_proxy_whitelist[name] or entity_name_bypasses_proxy_whitelist[alert_target.proxy_target.name] then
8285
table.insert(items_to_place_this, {name = name, count = count})
8386
end
8487
end

0 commit comments

Comments
 (0)