-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to avoid more class loading issues... Again
- Loading branch information
1 parent
ba95571
commit 20bc506
Showing
4 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/io/github/crucible/bootstrap/CrucibleCoremodHook.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.github.crucible.bootstrap; | ||
|
||
import cpw.mods.fml.common.launcher.FMLTweaker; | ||
import net.minecraft.launchwrapper.LaunchClassLoader; | ||
|
||
import java.io.File; | ||
|
||
public class CrucibleCoremodHook { | ||
// Too lazy for a coremod | ||
public static void coremodHandleLaunch(File mcDir, LaunchClassLoader classLoader, FMLTweaker tweaker) { | ||
classLoader.addClassLoaderExclusion("io.github.crucible.bootstrap."); | ||
try { | ||
// Ensure our config is loaded way before everything that may need it | ||
Class.forName("io.github.crucible.CrucibleConfigs", true, classLoader); | ||
} catch (ClassNotFoundException e) { | ||
throw new RuntimeException(e); | ||
} | ||
Lwjgl3ifyGlue.doCoremodWork(classLoader); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters