From 0b4ff75dfb9e643f6b59c1dfd7bc38b33160c664 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 7 Sep 2024 15:13:18 +0100 Subject: [PATCH] Fix opening mods dir when the .minecraft dir is a link --- src/main/java/net/fabricmc/installer/client/ClientHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/installer/client/ClientHandler.java b/src/main/java/net/fabricmc/installer/client/ClientHandler.java index 45fcd3f..bf667aa 100644 --- a/src/main/java/net/fabricmc/installer/client/ClientHandler.java +++ b/src/main/java/net/fabricmc/installer/client/ClientHandler.java @@ -131,7 +131,7 @@ private void showInstalledMessage(String loaderVersion, String gameVersion, Path try { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { if (e.getDescription().equals("fabric://mods")) { - Desktop.getDesktop().open(modsDirectory.toFile()); + Desktop.getDesktop().open(modsDirectory.toRealPath().toFile()); } else if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { Desktop.getDesktop().browse(e.getURL().toURI()); } else {