diff --git a/bobmodules/prototypes/lab.lua b/bobmodules/prototypes/lab.lua index 7e34d65e..96de6a04 100644 --- a/bobmodules/prototypes/lab.lua +++ b/bobmodules/prototypes/lab.lua @@ -191,7 +191,7 @@ if bobmods.modules.ModulesLab then }) bobmods.lib.tech.add_recipe_unlock("modules", "lab-module") - if DiscoScience and DiscoScience.prepareLab then + if mods["DiscoScience"] and DiscoScience and DiscoScience.prepareLab then DiscoScience.prepareLab(data.raw["lab"]["lab-module"]) end end diff --git a/bobtech/prototypes/entity/entity.lua b/bobtech/prototypes/entity/entity.lua index 4dedd4e2..76d19f66 100644 --- a/bobtech/prototypes/entity/entity.lua +++ b/bobtech/prototypes/entity/entity.lua @@ -328,7 +328,7 @@ if settings.startup["bobmods-burnerphase"].value == true then }, }) - if DiscoScience and DiscoScience.prepareLab then + if mods["DiscoScience"] and DiscoScience and DiscoScience.prepareLab then DiscoScience.prepareLab(data.raw["lab"]["burner-lab"]) end end