ProtocolLib

3M Downloads

1.13.2 Trident > representing air cannot store NMS information

Lix3nn53 opened this issue ยท 1 comments

commented

Follow this template except for feature requests. Use pastebin when providing /protocol dump and any relevant errors.

Make sure you've done the following:

  • You're using the latest build for your server version
  • This isn't an issue caused by another plugin
  • You've checked for duplicate issues
  • You didn't use /reload

Debug paste link: https://pastebin.com/hE66tt1q

Description and relevant errors:
this is my line which throws error: NbtCompound tag = (NbtCompound) NbtFactory.fromItemTag(MinecraftReflection.getBukkitItemStack(item));

When this "item"'s material is Trident (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html#TRIDENT) I get this error.

protocol-lib version: 4.4.0-b425
I made sure my item type is Trident and MinecraftReflection.getBukkitItemStack(item) returns Trident type item

commented

I have same problem. For some reason stack.getType() == Material.AIR is true when stack's material is Trident.
But when I've copied NbtFactory.fromItemTag to own class, problem disappear. Also problem disappear when I recompile ProtocolLib. So strange.