fix: isbrokenlink should be true to remove the symlink

This commit is contained in:
Fazri Gading
2026-01-26 12:24:24 +08:00
committed by GitHub
parent 94d4586b97
commit eff6fcd520

View File

@@ -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) {