From 9c7a09faa967fc67749f0ec8c8c2031f4c071313 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Tue, 14 Jun 2022 23:26:22 +0200 Subject: [PATCH] Fix ReflectRegistry --- .../fr/pandacube/lib/paper/reflect/ReflectRegistry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 be0f202..3862cd5 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 @@ -55,7 +55,7 @@ public class ReflectRegistry { public static final class Settings { public static final ClassMapping MAPPING = wrapEx(() -> NMSReflect.mojClass("net.minecraft.server.dedicated.Settings")); - public static final ReflectField properties = wrapEx(() -> MAPPING.runtimeReflect().field("properties")); + public static final ReflectField properties = wrapEx(() -> MAPPING.mojField("properties")); } @@ -99,7 +99,7 @@ public class ReflectRegistry { public static final class Entity { public static final ClassMapping MAPPING = wrapEx(() -> NMSReflect.mojClass("net.minecraft.world.entity.Entity")); - public static final ReflectMethod getBukkitEntity = wrapEx(() -> MAPPING.runtimeReflect().method("getBukkitEntity")); + public static final ReflectMethod getBukkitEntity = wrapEx(() -> MAPPING.runtimeReflect().method("getBukkitEntity")); // spigot field } public static final class ComponentArgument { @@ -158,7 +158,7 @@ public class ReflectRegistry { public static final class Level { public static final ClassMapping MAPPING = wrapEx(() -> NMSReflect.mojClass("net.minecraft.world.level.Level")); public static final ReflectMethod getGameTime = wrapEx(() -> MAPPING.mojMethod("getGameTime")); - public static final ReflectField paperConfig = wrapEx(() -> MAPPING.mojField("paperConfig")); + public static final ReflectField paperConfig = wrapEx(() -> MAPPING.runtimeReflect().field("paperConfig")); // paper field } public static final class ServerLevel {