From add5d3bcd7caba238a9801623c19d1dacb08c1ee Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 19 Feb 2023 19:31:02 +0100 Subject: [PATCH] Fix reflect wrapper MCDataConverter --- .../paper/reflect/wrapper/dataconverter/MCDataConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/dataconverter/MCDataConverter.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/dataconverter/MCDataConverter.java index aeb091e..6f49aa9 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/dataconverter/MCDataConverter.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/reflect/wrapper/dataconverter/MCDataConverter.java @@ -12,7 +12,7 @@ import static fr.pandacube.lib.util.ThrowableUtil.wrapReflectEx; public class MCDataConverter extends ReflectWrapper { public static final ReflectClass REFLECT = wrapEx(() -> Reflect.ofClass("ca.spottedleaf.dataconverter.minecraft.MCDataConverter")); - private static final ReflectMethod convertTag = wrapEx(() -> REFLECT.method("convertTag", Component.MAPPING.runtimeClass())); + private static final ReflectMethod convertTag = wrapEx(() -> REFLECT.method("convertTag", MCDataType.REFLECT.get(), CompoundTag.MAPPING.runtimeClass(), int.class, int.class)); public static CompoundTag convertTag(MCDataType type, CompoundTag data, int fromVersion, int toVersion) { return wrap(wrapReflectEx(() -> convertTag.invokeStatic(unwrap(type), unwrap(data), fromVersion, toVersion)), CompoundTag.class);