From f9c644ff4ee6a0c383bcd4b256b91164b8293b0e Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 14 Jul 2021 00:07:13 +0700 Subject: [PATCH] [FIX] Undo changes --- .../src/main/java/pro/gravit/utils/helper/JavaHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java index de4a5c4d..ba81ac82 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java @@ -78,7 +78,7 @@ public static List findJava() { } } if (JVMHelper.OS_TYPE == JVMHelper.OS.MUSTDIE) { - Path rootDrive = IOHelper.getRoot().concat("\\\\"); + Path rootDrive = IOHelper.getRoot(); try { trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("Java")); trySearchJava(javaPaths, result, rootDrive.resolve("Program Files").resolve("AdoptOpenJDK"));