From 4f558900922eb41f001ce82f6356605023fbf292 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 10 Jul 2024 01:15:01 +0200 Subject: [PATCH] Fix reflection in PaperBrigadier --- .../paper/reflect/wrapper/paper/commands/PaperBrigadier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/paper/commands/PaperBrigadier.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/paper/commands/PaperBrigadier.java index f51d775..af27872 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/paper/commands/PaperBrigadier.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/paper/commands/PaperBrigadier.java @@ -14,7 +14,7 @@ import static fr.pandacube.lib.util.ThrowableUtil.wrapReflectEx; public class PaperBrigadier extends ReflectWrapperTyped> { public static final ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("io.papermc.paper.command.brigadier.PaperBrigadier")); - private static final ReflectMethod wrapNode = wrapEx(() -> REFLECT.method("wrapNode")); + private static final ReflectMethod wrapNode = wrapEx(() -> REFLECT.method("wrapNode", CommandNode.class)); public static Command wrapNode(CommandNode node) {