address review, numero 2

This commit is contained in:
onebeastchris 2024-05-29 23:04:11 +02:00
parent 04d9024664
commit 9b1fa74c97

View file

@ -64,9 +64,6 @@ public class MessageTranslator {
// Reset character // Reset character
private static final String RESET = BASE + "r"; private static final String RESET = BASE + "r";
private static final char CHAR_NON_BREAKING_SPACE = 160;
private static final char CHAR_SPACE = 32;
static { static {
TEAM_COLORS.put(TeamColor.RESET, RESET); TEAM_COLORS.put(TeamColor.RESET, RESET);
@ -412,7 +409,7 @@ public class MessageTranslator {
whitespacesCount++; whitespacesCount++;
} else { } else {
startWhitespaces = false; startWhitespaces = false;
newChars[count++] = (actualChar == CHAR_NON_BREAKING_SPACE ? CHAR_SPACE : actualChar); newChars[count++] = (actualChar == '\u00A0' ? ' ' : actualChar);
whitespacesCount = 0; whitespacesCount = 0;
} }
} }