forked from GeyserMC/Geyser
Fix chat getting cut off (Closes #188)
This commit is contained in:
parent
3863cdb58f
commit
119f35b690
1 changed files with 4 additions and 4 deletions
|
@ -164,7 +164,7 @@ public class MessageUtils {
|
|||
}
|
||||
|
||||
private static String getFormat(List<ChatFormat> formats) {
|
||||
String str = "";
|
||||
StringBuilder str = new StringBuilder();
|
||||
for (ChatFormat cf : formats) {
|
||||
String base = "\u00a7";
|
||||
switch (cf) {
|
||||
|
@ -184,13 +184,13 @@ public class MessageUtils {
|
|||
base += "o";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
return "";
|
||||
}
|
||||
|
||||
str += base;
|
||||
str.append(base);
|
||||
}
|
||||
|
||||
return str;
|
||||
return str.toString();
|
||||
}
|
||||
|
||||
public static boolean isMessage(String text) {
|
||||
|
|
Loading…
Reference in a new issue