mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-02 11:21:15 +01:00
Make main method accessible to Bootstrap
This commit is contained in:
parent
6ffc9c2eef
commit
3073f2f52f
@ -33,6 +33,7 @@ public final class Bootstrap {
|
||||
|
||||
Class<?> mainClass = classLoader.loadClass(mainClassFullName);
|
||||
Method main = mainClass.getDeclaredMethod("main", String[].class);
|
||||
main.setAccessible(true);
|
||||
main.invoke(null, new Object[] { args });
|
||||
} catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException | ClassNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user