mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:01:58 +01:00
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:
parent
474603beb3
commit
c5f623b0ac
@ -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(() -> {
|
||||
|
Loading…
Reference in New Issue
Block a user