Cleanup (2)

This commit is contained in:
Anuken
2019-10-29 16:00:13 -04:00
parent b86218b75a
commit f1519f7aba
2 changed files with 2 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ public class ModCrashHandler{
public static void handle(Throwable t){ public static void handle(Throwable t){
Array<Throwable> list = Strings.getCauses(t); Array<Throwable> list = Strings.getCauses(t);
Throwable modCause = list.find(e -> e instanceof ModLoadException); Throwable modCause = list.find(e -> e instanceof ModLoadException);
if(modCause != null && Fonts.outline != null){ if(modCause != null && Fonts.outline != null){
String text = "[scarlet][[A fatal crash has occured while loading a mod!][]\n\nReason:[accent] " + modCause.getMessage(); 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."; String bottom = "[scarlet]The associated mod has been disabled. Swipe out of the app and launch it again.";

View File

@@ -1,3 +1,3 @@
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=1ef49d3d5414dee434425f71b4cbf80c3f2ba19e archash=7427c1283c865d3df9e3f76485e70f2d1c7454cd