From c806f30640519600939ab63a2b9bf05b6fa66c7a Mon Sep 17 00:00:00 2001 From: Lauriichan Date: Sun, 23 Jan 2022 12:40:03 +0100 Subject: [PATCH] Fixed JavaAccessor using lookup field instead of lookup() method --- .../minecraft/vcompat/provider/lookup/JavaAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcompat-api/src/main/java/net/sourcewriters/minecraft/vcompat/provider/lookup/JavaAccessor.java b/vcompat-api/src/main/java/net/sourcewriters/minecraft/vcompat/provider/lookup/JavaAccessor.java index ba14abb..237c3bf 100644 --- a/vcompat-api/src/main/java/net/sourcewriters/minecraft/vcompat/provider/lookup/JavaAccessor.java +++ b/vcompat-api/src/main/java/net/sourcewriters/minecraft/vcompat/provider/lookup/JavaAccessor.java @@ -57,7 +57,7 @@ public Object initialize(Constructor constructor, Object... arguments) { } try { if (arguments.length == 0) { - return lookup.unreflectConstructor(constructor).invoke(); + return lookup().unreflectConstructor(constructor).invokeWithArguments(); } return lookup().unreflectConstructor(constructor).invokeWithArguments(arguments); } catch (Throwable e) {