Update NetClient.java

This commit is contained in:
Patrick 'Quezler' Mounier 2020-11-19 20:34:49 +01:00 committed by GitHub
parent 07893eee9c
commit ce045a470a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,9 +342,9 @@ public class NetClient implements ApplicationListener{
@Remote(variants = Variant.both)
public static void warningToast(int unicode, String text){
if(text == null || mindustry.ui.Fonts.def.getData().getGlyph((char)unicode) == null) return;
if(text == null || Fonts.def.getData().getGlyph((char)unicode) == null) return;
ui.hudfrag.showToast(mindustry.ui.Fonts.getGlyph(mindustry.ui.Fonts.def, (char)unicode), text);
ui.hudfrag.showToast(Fonts.getGlyph(ui.Fonts.def, (char)unicode), text);
}
@Remote(variants = Variant.both)