From dd7d2b96e347b5145f1e209d26c51597c31f4743 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Fri, 13 Mar 2026 18:34:16 -0700 Subject: [PATCH] Fix potential issues here --- src/app/game/page.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx index 8cdf0fd..8488b53 100644 --- a/src/app/game/page.tsx +++ b/src/app/game/page.tsx @@ -30,7 +30,8 @@ export default function Installs () { category, setCategory, setDownloadedVersionsConfig, - downloadVersions + downloadVersions, + downloadProgress } = useGlobal() const params = useSearchParams() @@ -369,12 +370,13 @@ export default function Installs () { })) ) { if ( - await ask( + (await ask( "You don't have BepInEx (the mod loader for Unity Games), would you like to install it now? It is about 1MB in size. If you choose yes, it will download the recommended BepInEx version for " + getVersionInfo(entry)?.displayName + '.', { title: 'BepInEx not found!', kind: 'error' } - ) + )) && + !downloadProgress.find(d => d.version == entry) ) { downloadVersions([ {