Skip to content

Commit

Permalink
Ensure additional NameStyles do not break player components
Browse files Browse the repository at this point in the history
Signed-off-by: applenick <[email protected]>
  • Loading branch information
applenick committed May 13, 2022
1 parent f233b18 commit cdb10e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/tc/oc/pgm/blitz/BlitzMatchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import tc.oc.pgm.api.player.event.MatchPlayerDeathEvent;
import tc.oc.pgm.events.PlayerParticipationStartEvent;
import tc.oc.pgm.events.PlayerPartyChangeEvent;
import tc.oc.pgm.ffa.FreeForAllMatchModule;
import tc.oc.pgm.spawns.events.ParticipantSpawnEvent;
import tc.oc.pgm.teams.TeamMatchModule;

Expand Down
2 changes: 1 addition & 1 deletion util/src/main/java/tc/oc/pgm/util/Audience.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ default void sendWarning(Component message) {
playSound(WARNING_SOUND);
}

static final String PATTERN = "\\<[@!].*?:[0-5]\\>";
static final String PATTERN = "\\<[@!].*?:[0-" + NameStyle.values().length + "]\\>";

ComponentRenderer<Pointered> RENDERER =
new ComponentRenderer<Pointered>() {
Expand Down

0 comments on commit cdb10e2

Please sign in to comment.