Skip to content

Commit

Permalink
Use find_mod in check_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius7309 committed Jan 10, 2025
1 parent c22a22e commit 5778761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game_object.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Set `prefix_config.key = false` on your object instead.]]):format(obj.key), obj.
if type(self.dependencies) == 'string' then self.dependencies = { self.dependencies } end
for _, v in ipairs(self.dependencies) do
self.mod.optional_dependencies[v] = true
if not SMODS.Mods[v] or not SMODS.Mods[v].can_load then keep = false end
if not next(SMODS.find_mod(v)) then keep = false end
end
end
return keep
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return "1.0.0~ALPHA-1309c-STEAMODDED"
return "1.0.0~ALPHA-1310a-STEAMODDED"

0 comments on commit 5778761

Please sign in to comment.