Skip to content

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

Merged
Intelli merged 1 commit into
PlayPro:masterfrom
daniel-skopek:master
Sep 9, 2026
Merged

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

Conversation

@daniel-skopek

Copy link
Copy Markdown
Contributor

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.

@Intelli
Intelli merged commit 867fb3d into PlayPro:master Sep 9, 2026
3 checks passed
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.

2 participants