mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-25 12:25:41 +01:00
Fixed srv resolving not working in java 9+
This commit is contained in:
parent
a2956248dd
commit
40b266007a
@ -44,6 +44,7 @@ public class ViaProxy {
|
||||
transformerManager.addTransformer("net.raphimc.viaproxy.injection.transformer.**");
|
||||
transformerManager.addTransformer("net.raphimc.viaproxy.injection.mixins.**");
|
||||
final InjectionClassLoader injectionClassLoader = new InjectionClassLoader(transformerManager, ClassLoaders.getSystemClassPath());
|
||||
injectionClassLoader.addProtectedPackage("com.sun.");
|
||||
injectionClassLoader.setPriority(EnumLoaderPriority.PARENT_FIRST);
|
||||
injectionClassLoader.executeMain(ViaProxy.class.getName(), "injectedMain", args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user