trim trailing color char from gui title if trimming

This commit is contained in:
jascotty2 2019-10-06 09:50:14 -05:00
parent 3ae4f705bc
commit d1b3804296

View File

@ -789,8 +789,8 @@ public class Gui {
protected static String trimTitle(String title) {
if(title == null) {
return "";
} else if (title != null && title.length() > 32) {
return title.substring(0, 31);
} else if (title.length() > 32) {
return title.charAt(30) == '\u00A7' ? title.substring(0, 30) : title.substring(0, 31);
}
return title;
}