From efe388423c4ce0045dcc1bf4f6681b257b8d0ad3 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 17 Feb 2022 23:25:43 +0100 Subject: [PATCH] Fix ReflectRegistry.NMS.Commands.dispatcher field --- .../java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java b/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java index aed1a59..ca0c691 100644 --- a/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java +++ b/Paper/src/main/java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java @@ -41,7 +41,7 @@ public class ReflectRegistry { public static final class Commands { public static final ClassMapping MAPPING = wrapEx(() -> NMSReflect.mojClass("net.minecraft.commands.Commands")); - public static final ReflectField dispatcher = wrapEx(() -> DedicatedServer.MAPPING.mojField("dispatcher")); // TODO vérifier + public static final ReflectField dispatcher = wrapEx(() -> MAPPING.mojField("dispatcher")); // TODO vérifier } public static final class Vec3 {