1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-02-16 01:41:22 +01:00

Attempt to solve Windows Java finding failing to find MC folder

This commit is contained in:
Henry Le Grys 2021-10-27 01:56:52 +01:00
parent 932ef97be6
commit 4dad66a83e

View File

@ -39,7 +39,6 @@ public final class JavaRuntimeFinder {
"SOFTWARE\\Mojang\\InstalledProducts\\Minecraft Launcher", "InstallLocation");
launcherDir = new File(launcherPath);
if (!launcherDir.exists()) throw new Exception(); // i know i know
} catch (Throwable ignored) {
launcherDir = new File(System.getenv("APPDATA"), ".minecraft");
}