diff --git a/core/src/io/anuke/mindustry/mod/ModCrashHandler.java b/core/src/io/anuke/mindustry/mod/ModCrashHandler.java index 3cbf3a656a..77f3c68aba 100644 --- a/core/src/io/anuke/mindustry/mod/ModCrashHandler.java +++ b/core/src/io/anuke/mindustry/mod/ModCrashHandler.java @@ -16,6 +16,7 @@ public class ModCrashHandler{ public static void handle(Throwable t){ Array list = Strings.getCauses(t); Throwable modCause = list.find(e -> e instanceof ModLoadException); + if(modCause != null && Fonts.outline != null){ String text = "[scarlet][[A fatal crash has occured while loading a mod!][]\n\nReason:[accent] " + modCause.getMessage(); String bottom = "[scarlet]The associated mod has been disabled. Swipe out of the app and launch it again."; diff --git a/gradle.properties b/gradle.properties index 7b5dc8dfcb..e5d5666d49 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=1ef49d3d5414dee434425f71b4cbf80c3f2ba19e +archash=7427c1283c865d3df9e3f76485e70f2d1c7454cd