Open josemmo opened 1 week ago
yeah it looks like item stacks no longer have nbt. it's been changed to a DataComponentMap. will need to look into this new format and see what we can do as far as wrappers go
i am curious though...what are you trying to do with the item's NBT tags that can't be done with Bukkit's ItemMeta API?
Thanks for the info! I'm using it to create a filled map item stack with a hardcoded map ID:
Describe the bug Calling
NbtFactory.setItemTag()
in Minecraft 1.20.6 throws aFieldAccessException
. Using latest available snapshot at the time of reporting (v5.3.0-SNAPSHOT-720).Reporting this just in case, I assume ProtocolLib devs are already aware of the bug as the unit test that checks this was disabled a couple of weeks ago. Feel free to close this issue if duplicated.
To Reproduce Steps to reproduce the behavior:
Exception trace:
Expected behavior No exception is thrown.
Version Info