Skip to content

Commit

Permalink
Add mod check for DiscoScience
Browse files Browse the repository at this point in the history
Prevents errors with undeclared variables check
  • Loading branch information
KiwiHawk committed Aug 12, 2024
1 parent bb893a6 commit 412703f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bobmodules/prototypes/lab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion bobtech/prototypes/entity/entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 412703f

Please sign in to comment.