|
1 -- make sure it can accept all science packs a biolab can, even if extra science packs are added |
|
2 -- and it turns out some mods also add new science packs to the regular lab and not the biolab, |
|
3 -- so we need to add inputs from both of them |
|
4 local inputs = {} |
|
5 for _, lab in pairs{data.raw.lab.lab, data.raw.lab.biolab} |
|
6 do |
|
7 for _, lab_input in pairs(lab.inputs) |
|
8 do |
|
9 inputs[lab_input] = 1 |
|
10 end |
|
11 end |
|
12 |
|
13 data.raw.lab["fusion-lab"].inputs = {} |
|
14 for lab_input, _ in pairs(inputs) |
|
15 do |
|
16 table.insert(data.raw.lab["fusion-lab"].inputs, lab_input) |
|
17 end |