From eff6fcd520048d352bac70f181dc6b383567b2fc Mon Sep 17 00:00:00 2001 From: Fazri Gading Date: Mon, 26 Jan 2026 12:24:24 +0800 Subject: [PATCH] fix: isbrokenlink should be true to remove the symlink --- backend/core/paths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/paths.js b/backend/core/paths.js index bd381b4..78a5289 100644 --- a/backend/core/paths.js +++ b/backend/core/paths.js @@ -195,7 +195,7 @@ async function getModsPath(customInstallPath = null) { } } catch (e) { /* path doesn't exist at all */ } - if (!isBrokenLink) { + if (isBrokenLink) { fs.unlinkSync(modsPath); // Remove broken symlink } if (!pathExists || isBrokenLink) {