From bcf532aeba434b3c2de63edc29fae7657a05d24a Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 26 Jun 2022 19:48:23 +0200 Subject: [PATCH] Added method in ReflectRegistry --- .../java/fr/pandacube/lib/paper/reflect/ReflectRegistry.java | 1 + 1 file changed, 1 insertion(+) 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 2b44bb3..e7817ec 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 @@ -182,6 +182,7 @@ public class ReflectRegistry { public static final class ChunkStorage { public static final ClassMapping MAPPING = wrapEx(() -> NMSReflect.mojClass("net.minecraft.world.level.chunk.storage.ChunkStorage")); public static final ReflectMethod read = wrapEx(() -> MAPPING.mojMethod("read", ChunkPos.MAPPING)); + public static final ReflectMethod readSync = wrapEx(() -> MAPPING.runtimeReflect().method("readSync", ChunkPos.MAPPING.runtimeReflect().get())); // spigot/paper method }