Attempt to fix launchwrapper
This commit is contained in:
parent
22c27bb9ec
commit
3de1bd0218
|
@ -30,11 +30,11 @@ public class Main {
|
|||
Runnable main = (Runnable) LambdaMetafactory.metafactory(
|
||||
lookup,
|
||||
"run",
|
||||
MethodType.methodType(Runnable.class),
|
||||
MethodType.methodType(Runnable.class, String[].class),
|
||||
MethodType.methodType(Void.TYPE),
|
||||
MethodHandles.lookup().unreflect(mainMethod),
|
||||
MethodType.methodType(Void.TYPE)
|
||||
).getTarget().invokeWithArguments(new Object[]{newArgs});
|
||||
).getTarget().invokeExact(new Object[]{newArgs});
|
||||
Thread th = new Thread(main);
|
||||
th.setName("Minecraft");
|
||||
th.start();
|
||||
|
|
Loading…
Reference in New Issue