From 85b68ad135267bc33e03c3624b1bced9b7804c39 Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Sun, 30 Jun 2024 13:19:52 +0800 Subject: [PATCH] Fix findMinecraftRuntimeDirs() is broken on Linux/FreeBSD --- .../java/org/jackhuang/hmcl/download/java/JavaRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/java/JavaRepository.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/java/JavaRepository.java index 10f08fdce..89e87fc49 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/java/JavaRepository.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/java/JavaRepository.java @@ -57,7 +57,7 @@ public final class JavaRepository { "Minecraft Launcher\\runtime")); case LINUX: case FREEBSD: - return Stream.of(FileUtils.tryGetPath(System.getProperty("user.home", ".minecraft/runtime"))); + return Stream.of(FileUtils.tryGetPath(System.getProperty("user.home"), ".minecraft/runtime")); case OSX: return Stream.of(FileUtils.tryGetPath(System.getProperty("user.home"), "Library/Application Support/minecraft/runtime")); default: