Skip to content

Commit ec23fa3

Browse files
committed
fix class not found
1 parent cecf5b6 commit ec23fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/notcoded/codelib/common/mixinhelper/MixinPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public String getRefMapperConfig() {
3030
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
3131
Class<?> clazz;
3232
try {
33-
clazz = ClassLoader.getSystemClassLoader().loadClass(mixinClassName);
33+
clazz = Thread.currentThread().getContextClassLoader().loadClass(mixinClassName);
3434
} catch (ClassNotFoundException e) {
3535
return true; // no idea what happened
3636
}

0 commit comments

Comments
 (0)