Stills try to get Minecraft run on separate thread

This commit is contained in:
Duy Tran Khanh committed 2021-01-03 14:15:34 +07:00
1 parent 97845a5f36
commit 96a1158e3e
6 files changed
+103 -14

No files matched your search

@@ -83,19 +83,19 @@ public final class Tools
}
}
// new Thread(() -> { try {
new Thread(() -> { try {
URLClassLoader loader = new URLClassLoader(urlList.toArray(new URL[0]), Tools.class.getClassLoader());
Class<?> clazz = loader.loadClass(versionInfo.mainClass);
Method method = clazz.getMethod("main", String[].class);
method.invoke(null, new Object[]{launchArgs});
/*
} catch (Throwable th) {
throw new RuntimeException(th);
}
}).start();
*/
// JREUtils.launchJavaVM(javaArgList);
}