From 7ad308cc23dac23674c2bb1cd032318ce0ed0e95 Mon Sep 17 00:00:00 2001 From: Gravit Date: Wed, 14 Jul 2021 00:09:08 +0700 Subject: [PATCH] [FIX] Java search in Windows --- .../src/main/java/pro/gravit/utils/helper/IOHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/IOHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/IOHelper.java index 81826539..b465b44d 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/IOHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/IOHelper.java @@ -140,7 +140,7 @@ public static String getIP(SocketAddress address) { public static Path getRoot() { switch (JVMHelper.OS_TYPE) { case MUSTDIE: { - String drive = System.getenv("SystemDrive"); + String drive = System.getenv("SystemDrive").concat("\\"); return Paths.get(drive); } case LINUX: