mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 20:45:27 +01:00
trim trailing color char from gui title if trimming
This commit is contained in:
parent
3ae4f705bc
commit
d1b3804296
@ -789,8 +789,8 @@ public class Gui {
|
|||||||
protected static String trimTitle(String title) {
|
protected static String trimTitle(String title) {
|
||||||
if(title == null) {
|
if(title == null) {
|
||||||
return "";
|
return "";
|
||||||
} else if (title != null && title.length() > 32) {
|
} else if (title.length() > 32) {
|
||||||
return title.substring(0, 31);
|
return title.charAt(30) == '\u00A7' ? title.substring(0, 30) : title.substring(0, 31);
|
||||||
}
|
}
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user