From 38a42dcca02465c3ce93956edf29c499da9912af Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 26 Dec 2024 00:30:09 +0100 Subject: [PATCH] Fix reflection again --- .../spottedleaf/moonrise/ChunkSystemChunkStorage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/spottedleaf/moonrise/ChunkSystemChunkStorage.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/spottedleaf/moonrise/ChunkSystemChunkStorage.java index 7e5d64b..54dea8a 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/spottedleaf/moonrise/ChunkSystemChunkStorage.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/spottedleaf/moonrise/ChunkSystemChunkStorage.java @@ -1,6 +1,6 @@ package fr.pandacube.lib.paper.reflect.wrapper.spottedleaf.moonrise; -import fr.pandacube.lib.paper.reflect.wrapper.minecraft.world.DataVersion; +import fr.pandacube.lib.paper.reflect.wrapper.minecraft.world.RegionFileStorage; import fr.pandacube.lib.reflect.Reflect; import fr.pandacube.lib.reflect.ReflectClass; import fr.pandacube.lib.reflect.ReflectMethod; @@ -17,8 +17,8 @@ public interface ChunkSystemChunkStorage extends ReflectWrapperI { ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("ca.spottedleaf.moonrise.patches.chunk_system.storage.ChunkSystemChunkStorage")); ReflectMethod moonrise$getRegionStorage = wrapEx(() -> REFLECT.method("moonrise$getRegionStorage")); - default DataVersion moonrise$getRegionStorage() { - return wrap(wrapReflectEx(() -> moonrise$getRegionStorage.invoke(__getRuntimeInstance())), DataVersion.class); + default RegionFileStorage moonrise$getRegionStorage() { + return wrap(wrapReflectEx(() -> moonrise$getRegionStorage.invoke(__getRuntimeInstance())), RegionFileStorage.class); }