Skip to content

"beer.devs.fastnbt.nms.nbt.NBT.dataComponents" is null #345

@LoneDev6

Description

@LoneDev6

https://discord.com/channels/533407895010803753/1426624150293975041

Hi! The latest CosmeticsCore is not compatible with git-Paper-499 (MC: 1.20.4). It has problems with the FastNbt lib. The FastNbt-jar-1.4.14.jar has this line of code (idk if I can insert code with backticks in this form):

if (Version.isNewerThan(Version.v1_20_4)) {
dataComponents = (IDataComponents)NMSImpl.instantiate(IDataComponents.class);
}

And because of that (I think), when I try to use any cosmetic in game I get this error:
Cannot invoke "beer.devs.fastnbt.nms.nbt.IDataComponents.getLore(org.bukkit.inventory.ItemStack)" because "beer.devs.fastnbt.nms.nbt.NBT.dataComponents" is null

What can I do this fix this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions