diff --git a/src/Modules/Main.lua b/src/Modules/Main.lua index f1fb99310..c10124f98 100644 --- a/src/Modules/Main.lua +++ b/src/Modules/Main.lua @@ -114,10 +114,6 @@ function main:Init() self.showAnimations = true self.errorReadingSettings = false - if self.userPath then - self:ChangeUserPath(self.userPath, ignoreBuild) - end - if launch.devMode and IsKeyDown("CTRL") or os.getenv("REGENERATE_MOD_CACHE") == "1" then -- If modLib.parseMod doesn't find a cache entry it generates it. -- Not loading pre-generated cache causes it to be rebuilt @@ -139,6 +135,10 @@ function main:Init() self.tree = { } self:LoadTree(latestTreeVersion) + if self.userPath then + self:ChangeUserPath(self.userPath, ignoreBuild) + end + self.uniqueDB = { list = { }, loading = true } self.rareDB = { list = { }, loading = true }