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); buffer.append(ch);
} }
}else{ }else{
if(ch == ' '){ if(ch == ':'){
buffer.append(s, indexStart, i + 1);
indexStart = -1;
}else if(ch == ':'){
String content = s.substring(indexStart + 1, i); String content = s.substring(indexStart + 1, i);
buffer.append(Fonts.getUnicodeStr(content)); if(Fonts.hasUnicodeStr(content)){
indexStart = -1; buffer.append(Fonts.getUnicodeStr(content));
changed = true; changed = true;
indexStart = -1;
}else{
buffer.append(content);
indexStart = i;
}
} }
} }
} }