Skip to content

Fix item names not showing for items using the item_name component - #963

Open
daniel-skopek wants to merge 1 commit into
PlayPro:masterfrom
daniel-skopek:master
Open

Fix item names not showing for items using the item_name component#963
daniel-skopek wants to merge 1 commit into
PlayPro:masterfrom
daniel-skopek:master

Conversation

@daniel-skopek

Copy link
Copy Markdown

Items that store their name in the item_name data component (Minecraft 1.20.5+) showed only the material name (e.g. "Netherite Axe") in lookup tooltips, since CoreProtect only read ItemMeta#getDisplayName().

getEnchantments() now falls back to hasItemName()/getItemName() via reflection so custom names display correctly on 1.20.5+ while remaining compatible with older server versions.

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