From 97d1e906a75ea716e5a4caae3ffe3413a239df34 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Mon, 2 Dec 2024 02:49:37 -0800 Subject: [PATCH] oop --- core/src/mindustry/core/UI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index be78150d1e..cb295f5c64 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -685,7 +685,7 @@ public class UI implements ApplicationListener, Loadable{ } /** - * Finds all :name: in a string an replaces them with the icon, if such exists. + * Finds all :name: in a string and replaces them with the icon, if such exists. * Based on TextFormatter::simpleFormat */ public static String formatIcons(String s){ @@ -714,7 +714,7 @@ public class UI implements ApplicationListener, Loadable{ changed = true; indexStart = -1; }else{ - buffer.append(content); + buffer.append(":").append(content); indexStart = i; } }