Improved crash logs; source mod of crashes now included in report

This commit is contained in:
Anuken
2024-09-20 13:15:26 -04:00
parent c36e638826
commit 68dccab5ca
7 changed files with 71 additions and 40 deletions

View File

@@ -32,9 +32,9 @@ public class ServerLauncher implements ApplicationListener{
String result = "[" + dateTime.format(LocalDateTime.now()) + "] " + format(tags[level1.ordinal()] + " " + text + "&fr");
System.out.println(result);
};
new HeadlessApplication(new ServerLauncher(), throwable -> CrashSender.send(throwable, f -> {}));
new HeadlessApplication(new ServerLauncher(), throwable -> CrashHandler.handle(throwable, f -> {}));
}catch(Throwable t){
CrashSender.send(t, f -> {});
CrashHandler.handle(t, f -> {});
}
}
@@ -46,15 +46,15 @@ public class ServerLauncher implements ApplicationListener{
Vars.loadSettings();
Vars.init();
UI.loadColors();
Fonts.loadContentIconsHeadless();
content.createBaseContent();
mods.loadScripts();
content.createModContent();
content.init();
if(mods.hasContentErrors()){
err("Error occurred loading mod content:");
for(LoadedMod mod : mods.list()){