diff --git a/src-spt-mod/src/mod.ts b/src-spt-mod/src/mod.ts index f17c836..18ba6d8 100644 --- a/src-spt-mod/src/mod.ts +++ b/src-spt-mod/src/mod.ts @@ -30,8 +30,9 @@ class TarkovStash implements IPreAkiLoadMod { logger.log(`[tarkov-stash] Loading server info`, LogTextColor.GREEN); const version = watermark.getVersionTag(); const serverPath = path.resolve(); - const tarkovStashMod = preAkiModLoader.getImportedModDetails()['tarkov-stash']; - const modVersion = tarkovStashMod.version; + const modsInstalled = Object.values(preAkiModLoader.getImportedModDetails()); + const tarkovStashMod = modsInstalled.find((m) => m.name === 'tarkov-stash'); + const modVersion = tarkovStashMod?.version; return JSON.stringify({ version, path: serverPath, modVersion }); }, },