From 57787618807ff6487044b9340903fe2e438fc416 Mon Sep 17 00:00:00 2001 From: Casimir Eisenach Date: Fri, 10 Jan 2025 14:13:39 +0100 Subject: [PATCH] Use find_mod in check_deps --- src/game_object.lua | 2 +- version.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game_object.lua b/src/game_object.lua index 21c4ec39..6c3fee0e 100644 --- a/src/game_object.lua +++ b/src/game_object.lua @@ -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 diff --git a/version.lua b/version.lua index 921983db..de60e93b 100644 --- a/version.lua +++ b/version.lua @@ -1 +1 @@ -return "1.0.0~ALPHA-1309c-STEAMODDED" +return "1.0.0~ALPHA-1310a-STEAMODDED"