diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java index f2cc3d6353..841e7e42a7 100644 --- a/core/src/mindustry/core/NetClient.java +++ b/core/src/mindustry/core/NetClient.java @@ -21,6 +21,7 @@ import mindustry.net.Administration.*; import mindustry.net.Net.*; import mindustry.net.*; import mindustry.net.Packets.*; +import mindustry.ui.*; import mindustry.world.*; import mindustry.world.modules.*; @@ -339,6 +340,13 @@ public class NetClient implements ApplicationListener{ ui.showInfoToast(message, duration); } + + @Remote(variants = Variant.both) + public static void warningToast(int unicode, String text){ + if(text == null || Fonts.icon.getData().getGlyph((char)unicode) == null) return; + + ui.hudfrag.showToast(Fonts.getGlyph(Fonts.icon, (char)unicode), text); + } @Remote(variants = Variant.both) public static void setRules(Rules rules){