-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdata-final-fixes.lua
26 lines (21 loc) · 1.09 KB
/
data-final-fixes.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "prototypes.spidertron-dock-final-fixes" -- In case inventory sizes have changed since data
sp_data_stage = "data-final-fixes"
require "prototypes.nullius"
for _, spidertron in pairs(data.raw["spider-vehicle"]) do
-- Stop inserters from interacting with burner trash slots rather than dock
local flags = spidertron.flags or {}
table.insert(flags, "no-automated-item-removal")
table.insert(flags, "no-automated-item-insertion")
spidertron.flags = flags
end
local spiderling_grid = data.raw["equipment-grid"]["sp-spiderling-equipment-grid"]
if spiderling_grid and not mods["nullius"] then
-- Won't exist if spiderlings are disabled or if another mod removes it
spiderling_grid.equipment_categories = data.raw["equipment-grid"][data.raw["spider-vehicle"]["spidertron"].equipment_grid].equipment_categories
end
if mods["AutoTrash"] then
-- Further workarounds for https://forums.factorio.com/viewtopic.php?f=7&t=98151
local styles = data.raw["gui-style"].default
styles.at_right_scroll_pane.maximal_height = 165
-- Spidertron Patrols frame height is configurable and set at runtime
end