Skip to content

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

Merged
Dream-Master merged 1 commit into
masterfrom
fix/magnet-mode-chat-translation
Apr 19, 2026
Merged

Fix magnet mode chat messages not translating on multiplayer servers#50
Dream-Master merged 1 commit into
masterfrom
fix/magnet-mode-chat-translation

Conversation

@Eldrinn-Elantey

Copy link
Copy Markdown

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
@Dream-Master
Dream-Master merged commit 133760e into master Apr 19, 2026
1 check passed
@Dream-Master
Dream-Master deleted the fix/magnet-mode-chat-translation branch April 19, 2026 11:37
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.

3 participants