mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
address review, numero 2
This commit is contained in:
parent
04d9024664
commit
9b1fa74c97
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue