|
|
@ -66,7 +66,7 @@ function getItemCountsAndStockpileConfigs()
|
|
|
|
ret.premarked_item_counts = table.remove(data, 1)
|
|
|
|
ret.premarked_item_counts = table.remove(data, 1)
|
|
|
|
local unparsed_stockpile_configs = table.remove(data, 1)
|
|
|
|
local unparsed_stockpile_configs = table.remove(data, 1)
|
|
|
|
ret.stockpile_configs = {}
|
|
|
|
ret.stockpile_configs = {}
|
|
|
|
|
|
|
|
|
|
|
|
for idx,c in pairs(unparsed_stockpile_configs) do
|
|
|
|
for idx,c in pairs(unparsed_stockpile_configs) do
|
|
|
|
if not c.id or c.id == -1 then
|
|
|
|
if not c.id or c.id == -1 then
|
|
|
|
c.name = "ERROR"
|
|
|
|
c.name = "ERROR"
|
|
|
@ -79,7 +79,7 @@ function getItemCountsAndStockpileConfigs()
|
|
|
|
c.monitored = c.monitored ~= 0
|
|
|
|
c.monitored = c.monitored ~= 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
table.insert(ret.stockpile_configs, c)
|
|
|
|
table.insert(ret.stockpile_configs, c)
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return ret
|
|
|
|
return ret
|
|
|
|
end
|
|
|
|
end
|
|
|
|