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; } }