diff --git a/core/src/mindustry/ui/Fonts.java b/core/src/mindustry/ui/Fonts.java index c7d5524e84..c2dec0cc01 100644 --- a/core/src/mindustry/ui/Fonts.java +++ b/core/src/mindustry/ui/Fonts.java @@ -211,10 +211,7 @@ public class Fonts{ public static TextureRegionDrawable getGlyph(Font font, char glyph){ Glyph g = font.getData().getGlyph(glyph); - if(g == null){ - Log.err("No glyph: " + glyph + " (" + (int)glyph + ")"); - return new TextureRegionDrawable(Core.atlas.find("whiteui")); - } + if(g == null) throw new IllegalArgumentException("No glyph: " + glyph + " (" + (int)glyph + ")"); 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)){