[FIX] Хак для Forge

This commit is contained in:
Gravit 2019-12-13 09:37:42 +07:00
parent 4dcc1443f6
commit a259527a20
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 8 additions and 3 deletions

View file

@ -299,7 +299,12 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl
Launcher.LAUNCHED.set(true);
JVMHelper.fullGC();
// Invoke main method
try {
mainMethod.invokeWithArguments((Object) args.toArray(new String[0]));
} finally {
Request.service.close();
}
}
private static Process process = null;
@ -501,7 +506,7 @@ public static void main(String... args) throws Throwable {
ClientService.classLoader = classLoader;
classLoader.addURL(IOHelper.getCodeSource(ClientLauncher.class).toUri().toURL());
//classForName(classLoader, "com.google.common.collect.ForwardingMultimap");
ClientService.baseURLs = classpath;
ClientService.baseURLs = classLoader.getURLs();
LogHelper.debug("Starting JVM and client WatchService");
FileNameMatcher assetMatcher = profile.getAssetUpdateMatcher();
FileNameMatcher clientMatcher = profile.getClientUpdateMatcher();

View file

@ -108,7 +108,7 @@ public void close() throws InterruptedException {
ch.closeFuture().sync();
}
//group.shutdownGracefully();
group.shutdownGracefully();
}
public void eval(final String text) {