From 8c7b0ecee6cb338729ad67fffcf89fdb83558d4b Mon Sep 17 00:00:00 2001 From: cubewhy Date: Sat, 20 Jan 2024 08:12:03 +0800 Subject: [PATCH] fix "getMinecraftFolder" --- .idea/vcs.xml | 2 +- src/main/java/org/cubewhy/celestial/Celestial.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 9661ac71..c8397c94 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/main/java/org/cubewhy/celestial/Celestial.java b/src/main/java/org/cubewhy/celestial/Celestial.java index f4ac8dc2..561d56e8 100644 --- a/src/main/java/org/cubewhy/celestial/Celestial.java +++ b/src/main/java/org/cubewhy/celestial/Celestial.java @@ -276,7 +276,7 @@ private static File getMinecraftFolder() { if (os.equals(OSEnum.Windows)) { return new File(System.getenv("APPDATA"), ".minecraft"); } - return new File(System.getProperty("user.home", ".minecraft")); + return new File(System.getProperty("user.home"), ".minecraft"); } public static void initTheme() throws IOException {