Skip to content

Commit

Permalink
fix: Fix invalid PlayerAudience locale if it contains a region identi…
Browse files Browse the repository at this point in the history
…fier
  • Loading branch information
phinner committed Jan 12, 2025
1 parent 97ae204 commit f7ce4e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public final class PlayerAudienceImpl extends BaseNetConnectionAudience implemen
.putConstant(StandardKeys.MUUID, MUUID.from(player))
.putSupplied(
StandardKeys.LOCALE,
() -> Locale.forLanguageTag(player.locale().replace('-', '_')))
() -> Locale.forLanguageTag(player.locale().replace('_', '-')))
.putSupplied(StandardKeys.TEAM, player::team)
.putSupplied(StandardKeys.COLOR, () -> ComponentColor.from(player.color()))
.build();
Expand Down

0 comments on commit f7ce4e9

Please sign in to comment.