mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Хак для Forge
This commit is contained in:
parent
4dcc1443f6
commit
a259527a20
2 changed files with 8 additions and 3 deletions
|
@ -299,7 +299,12 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl
|
|||
Launcher.LAUNCHED.set(true);
|
||||
JVMHelper.fullGC();
|
||||
// Invoke main method
|
||||
mainMethod.invokeWithArguments((Object) args.toArray(new String[0]));
|
||||
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();
|
||||
|
|
|
@ -108,7 +108,7 @@ public void close() throws InterruptedException {
|
|||
ch.closeFuture().sync();
|
||||
}
|
||||
|
||||
//group.shutdownGracefully();
|
||||
group.shutdownGracefully();
|
||||
}
|
||||
|
||||
public void eval(final String text) {
|
||||
|
|
Loading…
Reference in a new issue