Skip to content

Commit

Permalink
Trace in loadHook
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Feb 8, 2016
1 parent 957a30a commit 2dcff78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/me/nallar/modpatcher/ModPatcherLoadHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class ModPatcherLoadHook {
private static final String VERSION = "@VERSION@".replace("-SNAPSHOT", "");

static void loadHook(ModPatcher.Version requiredVersion, String modPatcherRelease, int apiVersion) {
PatcherLog.trace("Loaded ModPatcher", new Throwable());

if (ModPatcherLoadHook.class.getClassLoader().getClass().getName().contains("LaunchClassLoader")) {
throw new Error("ModPatcher should not be loaded under LaunchClassLoader");
}
Expand Down

0 comments on commit 2dcff78

Please sign in to comment.