diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6598074..a850c3f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,7 +56,7 @@ jobs: needs: [get-version, build-and-test] uses: BUTR/workflows/.github/workflows/release-github.yml@master with: - mod_id: Vortex-Extension + mod_id: game-mount-and-blade2 mod_version: ${{ needs.get-version.outputs.version }} mod_description: | Download and install using the Extensions panel in Vortex. @@ -73,7 +73,7 @@ jobs: with: nexusmods_game_id: site nexusmods_mod_id: 875 - mod_filename: 'Vortex Extension' + mod_filename: game-mount-and-blade2 mod_version: ${{ needs.get-version.outputs.version }} mod_description: | Download and install using the Extensions panel in Vortex. @@ -81,4 +81,4 @@ jobs: artifact_name: game-mount-and-blade2 secrets: NEXUSMODS_APIKEY: ${{ secrets.ARAGAS_NEXUSMODS_API_KEY }} - NEXUSMODS_COOKIES: ${{ secrets.ARAGAS_NEXUSMODS_COOKIE_SID_DEVELOP }} + NEXUSMODS_SESSION_COOKIE: ${{ secrets.ARAGAS_NEXUSMODS_SESSION_COOKIE }} diff --git a/package.json b/package.json index 0fd6448..e35ba3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "game-mount-and-blade-ii-bannerlord-butr", - "version": "1.0.0", + "version": "1.0.1", "description": "A Vortex extension for Mount and Blade II: Bannerlord mod management.", "author": "BUTR Team & Nexus Mods", "license": "GPL-3.0+", diff --git a/src/utils/vortexLauncherManager.ts b/src/utils/vortexLauncherManager.ts index c3f97f3..9def50f 100644 --- a/src/utils/vortexLauncherManager.ts +++ b/src/utils/vortexLauncherManager.ts @@ -62,6 +62,9 @@ export class VortexLauncherManager { } const loadOrder = state.persistent.loadOrder[profileId] ?? []; + if (!Array.isArray(loadOrder)) { + return []; + } return loadOrder; };