Skip to content

Escape percent signs where necessary#6437

Merged
valaphee merged 1 commit into
GeyserMC:masterfrom
valaphee:escape-percent
May 31, 2026
Merged

Escape percent signs where necessary#6437
valaphee merged 1 commit into
GeyserMC:masterfrom
valaphee:escape-percent

Conversation

@valaphee
Copy link
Copy Markdown
Member

@valaphee valaphee commented May 31, 2026

Percent signs are used for translatables in Bedrock at some places, which we don't need

Copilot AI review requested due to automatic review settings May 31, 2026 13:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR escapes literal percent signs in Bedrock-bound text fields where % can be interpreted as translation placeholders, preserving intended display text.

Changes:

  • Escapes percent signs in combat death screen messages.
  • Escapes percent signs in boss bar titles.
  • Escapes percent signs in scoreboard objective display names.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
JavaPlayerCombatKillTranslator.java Escapes % in death info cause text before sending to Bedrock.
BossBar.java Escapes % in boss bar create/update title packets.
Objective.java Escapes % in scoreboard objective display names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@valaphee valaphee merged commit dc8ffa4 into GeyserMC:master May 31, 2026
2 checks passed
@valaphee valaphee deleted the escape-percent branch June 1, 2026 08:09
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