Skip to content

Fix hologram text serialization for 1.8#210

Merged
Pyrbu merged 1 commit intoPyrbu:2.Xfrom
giqnt:2.X
Feb 25, 2026
Merged

Fix hologram text serialization for 1.8#210
Pyrbu merged 1 commit intoPyrbu:2.Xfrom
giqnt:2.X

Conversation

@giqnt
Copy link
Contributor

@giqnt giqnt commented Nov 16, 2025

Hologram text was displaying as raw JSON strings in Minecraft 1.8 and earlier versions. This occurred because the legacy serialization path was using AdventureSerializer.asJson() which output JSON format that older clients couldn't properly parse.

Remove AdventureSerializer.asJson() usage that was causing hologram text
to display as raw JSON strings in Minecraft 1.8 and earlier versions.
The legacy serialization path now uses legacyComponentSerializer which
properly converts components to legacy color codes that older clients
understand.
@giqnt
Copy link
Contributor Author

giqnt commented Nov 17, 2025

2025-11-17_00 52 31 this is how it looked before this fix

@Pyrbu
Copy link
Owner

Pyrbu commented Nov 19, 2025

Have you tested this on a version like 1.12?

@giqnt
Copy link
Contributor Author

giqnt commented Nov 20, 2025

legacySerialization is true only when the server version is lower than 1.9 so it should work

@Pyrbu Pyrbu merged commit b242280 into Pyrbu:2.X Feb 25, 2026
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