Fix itemstack reflection

This commit is contained in:
Brokkonaut
2021-12-06 03:58:39 +01:00
parent 31589ceec7
commit e87e9e2939

View File

@ -781,7 +781,7 @@ public class BukkitUtils {
Method asNMSCopyMethod = craftItemStackClazz.getMethod("asNMSCopy", ItemStack.class);
Class<?> nmsItemStackClazz = ReflectionUtil.getMinecraftClass("world.item.ItemStack");
Method getTagMethod = nmsItemStackClazz.getMethod("getTag");
Method getTagMethod = nmsItemStackClazz.getMethod("getTagClone");
Object nmsItemStack = asNMSCopyMethod.invoke(null, itemStack);
Object itemTag = getTagMethod.invoke(nmsItemStack);