Skip to content

Commit

Permalink
Ensure essential Crucible classes are loaded ahead of time, avoid som…
Browse files Browse the repository at this point in the history
…e issues with our tweakers tweaking ourselves
  • Loading branch information
juanmuscaria committed Jan 8, 2024
1 parent 140818b commit ff58430
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ public static void restoreStreams() {

// Too lazy for a coremod
public static void coremodHandleLaunch(File mcDir, LaunchClassLoader classLoader, FMLTweaker tweaker) {
try {
// Ensure some essential classes are loaded before we register the tweaker
Class.forName("io.github.crucible.CrucibleConfigs", true, classLoader);
Class.forName("io.github.crucible.CrucibleModContainer", true, classLoader);
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
Lwjgl3ifyGlue.doCoremodWork(classLoader);
classLoader.addClassLoaderExclusion("io.github.crucible.bootstrap.");
}
Expand Down

0 comments on commit ff58430

Please sign in to comment.