Attempt to fix launchwrapper
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-04 16:04:26 +01:00
parent 22c27bb9ec
commit 3de1bd0218
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

@ -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();