Skip to content

fix legacy codes outside chat, tab list heads and f3 facing angles - #778

Merged
Purdze merged 2 commits into
masterfrom
bug-fixes
Oct 25, 2026
Merged

Purdze merged 2 commits into
masterfrom
bug-fixes

Conversation

@Purdze

@Purdze Purdze commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

summary

fixes three items from #776:

  • legacy § formatting codes now apply to all text, not just chat. vanilla's font decomposes them in everything it draws, so titles, subtitles, boss bars, the scoreboard, item names, the tab list and container titles showed the raw codes. chat still strips them first when chat colors is off.
  • the tab list draws each player's face instead of steve, and like vanilla only on online-mode servers (the login packet's onlineMode); offline servers get no head column at all.
  • the f3 facing angles are wrapped to [-180, 180) like vanilla's DebugEntryPosition, instead of counting past 359.

reference

net/minecraft/client/gui/components/PlayerTabOverlay.java, client/gui/components/debug/DebugEntryPosition.java, util/StringDecomposer.java, client/gui/components/ComponentRenderUtils.java

testing

unit tests for the facing line and legacy code decomposition. just ingame-test 33/33. in game against a local offline server: title, subtitle, sidebar, boss bar and item name all render § codes with no raw codes left, and the tab list has no head column. online-mode heads need a real server.

@github-actions github-actions Bot added the bug Something isn't working label Oct 25, 2026
@Purdze Purdze mentioned this pull request Oct 25, 2026
@anmvc

anmvc commented Oct 25, 2026

Copy link
Copy Markdown

LGTM

@anmvc

anmvc commented Oct 25, 2026

Copy link
Copy Markdown

WHY can i review when im not matainer lol

@Purdze
Purdze merged commit 5e82608 into master Oct 25, 2026
15 checks passed
@Purdze
Purdze deleted the bug-fixes branch October 25, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants