fusion-lab/data-final-fixes.lua

changeset 10
101603241531
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fusion-lab/data-final-fixes.lua	Wed Jul 02 14:28:57 2025 +0300
@@ -0,0 +1,17 @@
+-- make sure it can accept all science packs a biolab can, even if extra science packs are added
+-- and it turns out some mods also add new science packs to the regular lab and not the biolab,
+-- so we need to add inputs from both of them
+local inputs = {}
+for _, lab in pairs{data.raw.lab.lab, data.raw.lab.biolab}
+do
+	for _, lab_input in pairs(lab.inputs)
+	do
+		inputs[lab_input] = 1
+	end
+end
+
+data.raw.lab["fusion-lab"].inputs = {}
+for lab_input, _ in pairs(inputs)
+do
+	table.insert(data.raw.lab["fusion-lab"].inputs, lab_input)
+end

mercurial