Skip to content

Fix magnet mode chat messages not translating on multiplayer servers#50

Open
Eldrinn-Elantey wants to merge 1 commit intomasterfrom
fix/magnet-mode-chat-translation
Open

Fix magnet mode chat messages not translating on multiplayer servers#50
Eldrinn-Elantey wants to merge 1 commit intomasterfrom
fix/magnet-mode-chat-translation

Conversation

@Eldrinn-Elantey
Copy link

Replace ChatComponentText with ChatComponentTranslation in PacketSetMagnet to ensure magnet mode change messages are resolved on the client side.

Previously, LocaleHandler.getLocal() was called on the server where I18n is unavailable, causing players to receive untranslated keys or English-only text regardless of their language settings. ChatComponentTranslation sends the locale key to the client, which then resolves it using the player's own language file.

Replace ChatComponentText with ChatComponentTranslation in PacketSetMagnet
to ensure magnet mode change messages are resolved on the client side.

Previously, LocaleHandler.getLocal() was called on the server where I18n
is unavailable, causing players to receive untranslated keys or English-only
text regardless of their language settings. ChatComponentTranslation sends
the locale key to the client, which then resolves it using the player's
own language file.
@Eldrinn-Elantey Eldrinn-Elantey requested a review from a team March 18, 2026 14:17
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