Skip to content

fix item chat links showing English names on dedicated servers - #924

Open
Eldrinn-Elantey wants to merge 4 commits into
masterfrom
fix/item-stack-chat-localization
Open

fix item chat links showing English names on dedicated servers#924
Eldrinn-Elantey wants to merge 4 commits into
masterfrom
fix/item-stack-chat-localization

Conversation

@Eldrinn-Elantey

@Eldrinn-Elantey Eldrinn-Elantey commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

ItemStack.func_151000_E() resolved item names server-side, so on dedicated servers everyone saw English regardless of locale. Switched to ChatComponentItemName from GTNHLib so each client resolves the name in its own locale, which also avoids the NBT toString crash from GTNewHorizons/GT-New-Horizons-Modpack#21933 and GTNewHorizons/GT-New-Horizons-Modpack#21940. Tested in-game.

ItemStack.func_151000_E() resolved item names server-side, so on dedicated servers all clients saw English names regardless of locale. Replaced with ChatComponentItemName from GTNHLib which serializes the full ItemStack and lets each client resolve the name in their own locale. Also adds chat hover tooltip for item links and avoids the NBT toString crash from GTNH#21933/#21940.
@github-actions

Copy link
Copy Markdown
Contributor

#927

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