diff --git a/Loader/src/main/java/de/com/baseband/launcher/classloader/CustomClassLoader.java b/Loader/src/main/java/de/com/baseband/launcher/classloader/CustomClassLoader.java index ed3a90b..aca37b5 100644 --- a/Loader/src/main/java/de/com/baseband/launcher/classloader/CustomClassLoader.java +++ b/Loader/src/main/java/de/com/baseband/launcher/classloader/CustomClassLoader.java @@ -134,6 +134,13 @@ public class CustomClassLoader extends ClassLoader implements Util { } } + @Override + public synchronized Class loadClass(String name) throws ClassNotFoundException { + synchronized (Launch.classLoader) { + return super.loadClass(name); + } + } + private Class loadBBClass(String name) { /*Set uniqueClassLoaders = Thread.getAllStackTraces().keySet().stream() .map(Thread::getContextClassLoader)