From 8c3577c55abb21e0c278a8c395aa82811b7fa797 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 6 Nov 2020 19:45:56 -0500 Subject: [PATCH] ??? --- core/src/mindustry/ui/Fonts.java | 5 ++++- gradle.properties | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ui/Fonts.java b/core/src/mindustry/ui/Fonts.java index c2dec0cc01..c7d5524e84 100644 --- a/core/src/mindustry/ui/Fonts.java +++ b/core/src/mindustry/ui/Fonts.java @@ -211,7 +211,10 @@ 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 + ")"); + if(g == null){ + Log.err("No glyph: " + glyph + " (" + (int)glyph + ")"); + return new TextureRegionDrawable(Core.atlas.find("whiteui")); + } 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 18cc141b8c..49d67ad96b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=88117cfd8e7cc80bd4b23086434ae9b36501db3a +archash=6f78ef4e6e78bf84ad0258101e1c0b1061bf05e6