Skip to content

Commit

Permalink
fix: pass modref for smm install and modid for smr download
Browse files Browse the repository at this point in the history
  • Loading branch information
budak7273 committed Sep 17, 2024
1 parent 4fe9391 commit bdaeac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/mods/ModLatestVersions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
export let latestVersions!: ILatestVersions;
export let modId!: string;
export let modReference!: string;
export const { t } = getTranslate();
</script>
Expand All @@ -51,7 +52,7 @@
<div class="text-1xl col-span-3 h-auto w-auto p-2.5">
<a
href="#top"
on:click={() => installMod(modId)}
on:click={() => installMod(modReference)}
title="Install via Satisfactory Mod Manager"
class="text-yellow-500">
<span class="material-icons align-middle" style="font-size: 118x;">download</span> <u>Install</u>
Expand Down
5 changes: 4 additions & 1 deletion src/routes/mod/[modId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@
modName={$mod.data.mod.name}
compatibility={$mod.data.mod.compatibility} />
</div>
<ModLatestVersions modId={$mod.data.mod.mod_reference} latestVersions={$mod.data.mod.latestVersions} />
<ModLatestVersions
modId={$mod.data.mod.id}
modReference={$mod.data.mod.mod_reference}
latestVersions={$mod.data.mod.latestVersions} />
<CompatibilityGrid compatibility={$mod.data.mod.compatibility} />
<ModInfo mod={$mod.data.mod} />
<ModAuthors authors={$mod.data.mod.authors} />
Expand Down

0 comments on commit bdaeac1

Please sign in to comment.