Skip to content

Commit

Permalink
Don't allow fabric to be added to the knot classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamebuster19901 committed Aug 7, 2024
1 parent cb6f827 commit 053a219
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,11 @@ public void initialize(FabricLauncher launcher) {
Path logHandler = InternalUtils.getCodeSource(logHandlerClass);

launcher.addToClassPath(crashService, ALLOWED_EARLY_CLASS_PREFIXES);
launcher.addToClassPath(logHandler, ALLOWED_EARLY_CLASS_PREFIXES);
launcher.setAllowedPrefixes(logHandler, ALLOWED_EARLY_CLASS_PREFIXES);

System.out.println("Crash service code source: " + crashService);

launcher.loadIntoTarget("com.wildermods.provider.services.CrashLogService");
launcher.loadIntoTarget("net.fabricmc.loader.impl.util.log.LogHandler");

unlockClassPath(launcher);

System.out.println("Target CL: " + launcher.getTargetClassLoader());
System.out.println("Context CL: " + Thread.currentThread().getContextClassLoader());
Expand Down

0 comments on commit 053a219

Please sign in to comment.