Fix findMinecraftRuntimeDirs() is broken on Linux/FreeBSD

This commit is contained in:
Haowei Wen 2024-06-30 13:19:52 +08:00
parent 7d5d74d0c6
commit 85b68ad135

View File

@ -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: