diff --git a/LauncherCore/src/main/java/pro/gravit/utils/launch/LegacyLaunch.java b/LauncherCore/src/main/java/pro/gravit/utils/launch/LegacyLaunch.java index 1a155fe4..a7511ad9 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/launch/LegacyLaunch.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/launch/LegacyLaunch.java @@ -54,6 +54,10 @@ private class LegacyClassLoader extends URLClassLoader { private final Map> classMap = new ConcurrentHashMap<>(); private String nativePath; + static { + ClassLoader.registerAsParallelCapable(); + } + private final List packages = new ArrayList<>(); public LegacyClassLoader(URL[] urls) { super(urls); diff --git a/LauncherCore/src/main/java/pro/gravit/utils/launch/ModuleLaunch.java b/LauncherCore/src/main/java/pro/gravit/utils/launch/ModuleLaunch.java index 5a414ea8..d83e3c44 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/launch/ModuleLaunch.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/launch/ModuleLaunch.java @@ -164,6 +164,11 @@ private class ModuleClassLoader extends URLClassLoader { private String nativePath; private final List packages = new ArrayList<>(); + + static { + ClassLoader.registerAsParallelCapable(); + } + public ModuleClassLoader(URL[] urls, ClassLoader parent) { super("LAUNCHER", urls, parent); packages.add("pro.gravit.launcher.");