Added dedicated server crash reports

This commit is contained in:
Anuken
2018-08-30 09:05:15 -04:00
parent 3e18fb3ca0
commit febc1e53b6
6 changed files with 90 additions and 57 deletions

View File

@@ -40,6 +40,7 @@ public class CrashHandler{
ex(() -> value.addChild("build", new JsonValue(Version.build)));
ex(() -> value.addChild("net", new JsonValue(fn)));
ex(() -> value.addChild("server", new JsonValue(fs)));
ex(() -> value.addChild("gamemode", new JsonValue(Vars.state.mode.toString())));
ex(() -> value.addChild("os", new JsonValue(System.getProperty("os.name"))));
ex(() -> value.addChild("multithreading", new JsonValue(Settings.getBool("multithread"))));
ex(() -> value.addChild("trace", new JsonValue(parseException(e))));