Skip to content

Handle legacy NBT warning on data component versions - #306

Open
pneqnp-iswr wants to merge 1 commit into
HelpChat:mainfrom
pneqnp-iswr:fix/paper26-legacy-nbt
Open

Handle legacy NBT warning on data component versions#306
pneqnp-iswr wants to merge 1 commit into
HelpChat:mainfrom
pneqnp-iswr:fix/paper26-legacy-nbt

Conversation

@pneqnp-iswr

Copy link
Copy Markdown

On Minecraft versions using item data components, the legacy NBT hook is no longer applicable.

DeluxeMenus currently reports this as a warning:

Could not setup a NMS hook for your server version!

However, on data component versions this is expected behavior rather than a hook failure.

This change detects VersionHelper.HAS_DATA_COMPONENTS before checking the legacy NBT provider and reports the unsupported legacy NBT item options as an informational message instead.

This does not attempt to restore the legacy nbt_int, nbt_ints, nbt_string, or nbt_strings options on modern versions.

Related to #196.

This is separate from #290, which addresses CraftBukkit package resolution on Paper 26.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant