From 007d5fcdd204e23fdf3a5ce5750a66bd73a8caa1 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Mon, 2 Dec 2024 02:45:59 -0800 Subject: [PATCH] Smarter end check I think it's smarter? --- core/src/mindustry/core/UI.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index 9e8c7448c4..598156cb33 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -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; + } } } }