From 2ba3b2521de58a670b69ddb2d5e68f2d4ff1f80d Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Mon, 2 Dec 2024 02:51:45 -0800 Subject: [PATCH] Update UI.java --- core/src/mindustry/core/UI.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index cb295f5c64..75de226c9e 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -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));