diff --git a/core/src/mindustry/ui/Fonts.java b/core/src/mindustry/ui/Fonts.java index 295a292c98..7beff27396 100644 --- a/core/src/mindustry/ui/Fonts.java +++ b/core/src/mindustry/ui/Fonts.java @@ -236,8 +236,12 @@ public class Fonts{ } public static TextureRegionDrawable getGlyph(Font font, char glyph){ - Glyph g = font.getData().getGlyph(glyph); - if(g == null) throw new IllegalArgumentException("No glyph: " + glyph + " (" + (int)glyph + ")"); + Glyph found = font.getData().getGlyph(glyph); + if(found == null){ + Log.warn("No icon found for glyph: @ (@)", glyph, (int)glyph); + found = font.getData().getGlyph('F'); + } + Glyph g = found; float size = Math.max(g.width, g.height); TextureRegionDrawable draw = new TextureRegionDrawable(new TextureRegion(font.getRegion().texture, g.u, g.v2, g.u2, g.v)){ diff --git a/gradle.properties b/gradle.properties index da2c038cd7..642357fb9e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,4 +10,4 @@ kapt.include.compile.classpath=false kotlin.stdlib.default.dependency=false #needed for android compilation android.useAndroidX=true -archash=b8db131172548e1f10ba86392e09819c34296711 +archash=fbdfa0307101b881e208f53666c1f4b7ebf0fe90