diff --git a/jte-runtime/src/main/java/gg/jte/runtime/RuntimeTemplateLoader.java b/jte-runtime/src/main/java/gg/jte/runtime/RuntimeTemplateLoader.java index 2d83f831..6e645de4 100644 --- a/jte-runtime/src/main/java/gg/jte/runtime/RuntimeTemplateLoader.java +++ b/jte-runtime/src/main/java/gg/jte/runtime/RuntimeTemplateLoader.java @@ -9,15 +9,7 @@ public class RuntimeTemplateLoader extends TemplateLoader { public RuntimeTemplateLoader(Path classDirectory, ClassLoader parentClassLoader, String packageName) { super(classDirectory, packageName); - this.singleClassLoader = createClassLoader(parentClassLoader); - } - - @Override - protected ClassLoader createClassLoader(ClassLoader parentClassLoader) { - if (classDirectory == null) { - return Thread.currentThread().getContextClassLoader(); - } - return super.createClassLoader(parentClassLoader); + this.singleClassLoader = parentClassLoader; } @Override