Skip to content

Commit

Permalink
Fix opening mods dir when the .minecraft dir is a link
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Sep 7, 2024
1 parent 78c7d0d commit 0b4ff75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0b4ff75

Please sign in to comment.