From d69b920ec7fd9e394130b6c7150fe8ad72c141cd Mon Sep 17 00:00:00 2001 From: Doc Date: Fri, 4 Mar 2022 17:55:44 -0300 Subject: [PATCH] Fix ReflectionManager for 1.18.2 --- .../utilities/reflection/v1_18_2/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms/v1_18_R2/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_2/ReflectionManager.java b/nms/v1_18_R2/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_2/ReflectionManager.java index d60b2401..f668f4f4 100644 --- a/nms/v1_18_R2/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_2/ReflectionManager.java +++ b/nms/v1_18_R2/src/main/java/me/libraryaddict/disguise/utilities/reflection/v1_18_2/ReflectionManager.java @@ -452,7 +452,7 @@ public class ReflectionManager implements ReflectionManagerAbstract { public ItemMeta getDeserializedItemMeta(Map meta) { try { - Class aClass = Class.forName("org.bukkit.craftbukkit.v1_18_R1.inventory.CraftMetaItem$SerializableMeta"); + Class aClass = Class.forName("org.bukkit.craftbukkit.v1_18_R2.inventory.CraftMetaItem$SerializableMeta"); Method deserialize = aClass.getDeclaredMethod("deserialize", Map.class); Object itemMeta = deserialize.invoke(null, meta);