Just don't check for adjacent colons.

The hasUnicodeStr already checks for validity
This commit is contained in:
MEEPofFaith
2024-12-02 03:50:36 -08:00
parent 2ba3b2521d
commit ecaebe0c3f

View File

@@ -703,12 +703,6 @@ public class UI implements ApplicationListener, Loadable{
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));