Skip to content

Fix action bar color codes stripped by getTranslationNoColor#482

Merged
tastybento merged 2 commits intodevelopfrom
copilot/sub-pr-470
Apr 5, 2026
Merged

Fix action bar color codes stripped by getTranslationNoColor#482
tastybento merged 2 commits intodevelopfrom
copilot/sub-pr-470

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

tryToShowActionBar was calling getTranslationNoColor(...), which strips &-prefixed color codes before the string reached bukkitToAdventure() — resulting in a plain, uncolored action bar despite locale strings like:

status: "&a Phase: &b [phase-name] &d | &a Blocks: &b [done] &d / &b [total]"

Change

  • BossBarListener.tryToShowActionBar: Replace getTranslationNoColor with getTranslation so color codes are preserved and correctly deserialized into a styled Adventure Component by the existing LEGACY_SERIALIZER.

Copilot AI changed the title [WIP] [WIP] Address feedback on Version 1.22.1 PR Fix action bar color codes stripped by getTranslationNoColor Apr 5, 2026
@tastybento tastybento marked this pull request as ready for review April 5, 2026 20:44
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 5, 2026

Copilot AI requested a review from tastybento April 5, 2026 21:10
@tastybento tastybento merged commit a038d97 into develop Apr 5, 2026
3 checks passed
@tastybento tastybento deleted the copilot/sub-pr-470 branch April 5, 2026 21:26
@tastybento tastybento mentioned this pull request Apr 5, 2026
2 tasks
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