Add more debug logs, for #21
This commit is contained in:
1 parent
335c734019
commit
3a21427095
1 file changed
+7
-5
@@ -85,12 +85,14 @@ public final class Tools
|
||||
}
|
||||
|
||||
new Thread(() -> { try {
|
||||
System.out.println("Args init finished. Now starting game");
|
||||
|
||||
URLClassLoader loader = new URLClassLoader(urlList.toArray(new URL[0]), ClassLoader.getSystemClassLoader());
|
||||
Class<?> clazz = loader.loadClass(versionInfo.mainClass);
|
||||
Method method = clazz.getMethod("main", String[].class);
|
||||
method.invoke(null, new Object[]{launchArgs});
|
||||
|
||||
URLClassLoader loader = new URLClassLoader(urlList.toArray(new URL[0]), ClassLoader.getSystemClassLoader());
|
||||
Class<?> clazz = loader.loadClass(versionInfo.mainClass);
|
||||
Method method = clazz.getMethod("main", String[].class);
|
||||
method.invoke(null, new Object[]{launchArgs});
|
||||
|
||||
System.out.println("It went past main(). Should not reach here!");
|
||||
} catch (Throwable th) {
|
||||
throw new RuntimeException(th);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user