[FEATURE] ClientService.nativesPath

This commit is contained in:
Gravit 2020-01-04 21:17:24 +07:00
parent 160219c36b
commit 7d5b912c3c
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 2 additions and 0 deletions

View file

@ -6,5 +6,6 @@
public class ClientService {
public static Instrumentation instrumentation;
public static ClassLoader classLoader;
public static String nativePath;
public static URL[] baseURLs;
}

View file

@ -504,6 +504,7 @@ public static void main(String... args) throws Throwable {
AuthService.username = params.pp.username;
AuthService.uuid = params.pp.uuid;
ClientService.classLoader = classLoader;
ClientService.nativePath = classLoader.nativePath;
classLoader.addURL(IOHelper.getCodeSource(ClientLauncher.class).toUri().toURL());
//classForName(classLoader, "com.google.common.collect.ForwardingMultimap");
ClientService.baseURLs = classLoader.getURLs();