Skip to content

Commit

Permalink
Fix opening mods dir when the .minecraft dir is a link (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 authored Sep 16, 2024
1 parent 33bacb6 commit cba20a9
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 cba20a9

Please sign in to comment.