SPIGOT-6902: (Unsupported) Load server as child of system classloader

This is an _unsupported_ feature and may be removed at a later date

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2022-01-19 08:48:55 +11:00
parent 474603beb3
commit c5f623b0ac

View File

@ -50,8 +50,7 @@ public class Main {
System.exit(0);
}
ClassLoader maybePlatformClassLoader = getClass().getClassLoader().getParent();
URLClassLoader classLoader = new URLClassLoader(extractedUrls.toArray(new URL[0]), maybePlatformClassLoader);
URLClassLoader classLoader = new URLClassLoader(extractedUrls.toArray(new URL[0]));
System.out.println("Starting server");
Thread runThread = new Thread(() -> {