3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Fix chat getting cut off (Closes #188)

Dieser Commit ist enthalten in:
RednedEpic 2020-03-06 15:44:49 -06:00
Ursprung 3863cdb58f
Commit 119f35b690

Datei anzeigen

@ -164,7 +164,7 @@ public class MessageUtils {
} }
private static String getFormat(List<ChatFormat> formats) { private static String getFormat(List<ChatFormat> formats) {
String str = ""; StringBuilder str = new StringBuilder();
for (ChatFormat cf : formats) { for (ChatFormat cf : formats) {
String base = "\u00a7"; String base = "\u00a7";
switch (cf) { switch (cf) {
@ -184,13 +184,13 @@ public class MessageUtils {
base += "o"; base += "o";
break; break;
default: default:
break; return "";
} }
str += base; str.append(base);
} }
return str; return str.toString();
} }
public static boolean isMessage(String text) { public static boolean isMessage(String text) {