diff --git a/src/main/java/org/quiltmc/loader/impl/discovery/ClasspathModCandidateFinder.java b/src/main/java/org/quiltmc/loader/impl/discovery/ClasspathModCandidateFinder.java index 5722381c5..9c8fabc77 100644 --- a/src/main/java/org/quiltmc/loader/impl/discovery/ClasspathModCandidateFinder.java +++ b/src/main/java/org/quiltmc/loader/impl/discovery/ClasspathModCandidateFinder.java @@ -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;