Update UI.java

This commit is contained in:
MEEPofFaith
2024-12-02 02:51:45 -08:00
parent 97d1e906a7
commit 2ba3b2521d

View File

@@ -698,16 +698,17 @@ public class UI implements ApplicationListener, Loadable{
char ch = s.charAt(i);
if(indexStart < 0){
if(ch == ':'){
if(i + 1 < length && s.charAt(i + 1) == ':'){
buffer.append(ch);
i++;
}else{
indexStart = i;
}
indexStart = i;
}else{
buffer.append(ch);
}
}else if(ch == ':'){
if(i == indexStart + 1){
buffer.append(":");
indexStart = -1;
continue;
}
String content = s.substring(indexStart + 1, i);
if(Fonts.hasUnicodeStr(content)){
buffer.append(Fonts.getUnicodeStr(content));