Smarter end check

I think it's smarter?
This commit is contained in:
MEEPofFaith
2024-12-02 02:45:59 -08:00
parent 58b0f38e24
commit 007d5fcdd2

View File

@@ -708,14 +708,16 @@ public class UI implements ApplicationListener, Loadable{
buffer.append(ch);
}
}else{
if(ch == ' '){
buffer.append(s, indexStart, i + 1);
indexStart = -1;
}else if(ch == ':'){
if(ch == ':'){
String content = s.substring(indexStart + 1, i);
buffer.append(Fonts.getUnicodeStr(content));
indexStart = -1;
changed = true;
if(Fonts.hasUnicodeStr(content)){
buffer.append(Fonts.getUnicodeStr(content));
changed = true;
indexStart = -1;
}else{
buffer.append(content);
indexStart = i;
}
}
}
}