Skip to content

Commit

Permalink
Fixed failure of getting Quilt Path if using a different Knot
Browse files Browse the repository at this point in the history
  • Loading branch information
coolGi69 committed Aug 18, 2024
1 parent ddfd8c8 commit 010f14c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static Path getLoaderPath() {

public static Path getGameProviderPath() {
try {
return UrlUtil.asPath(QuiltLoaderImpl.INSTANCE.getGameProvider().getClass().getProtectionDomain().getCodeSource().getLocation());
return UrlUtil.asPath(QuiltLoaderImpl.class.getProtectionDomain().getCodeSource().getLocation());
} catch (Throwable t) {
Log.debug(LogCategory.DISCOVERY, "Could not retrieve launcher code source!", t);
return null;
Expand Down

0 comments on commit 010f14c

Please sign in to comment.