Add version type/number/modifier to crash reports (#221)

This commit is contained in:
iczero
2018-09-09 11:38:29 -07:00
committed by Anuken
parent e06970eebb
commit abfaa47db2
2 changed files with 6 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ public class CrashHandler{
boolean fn = netActive, fs = netServer;
//add all relevant info, ignoring exceptions
ex(() -> value.addChild("versionType", new JsonValue(Version.type)));
ex(() -> value.addChild("versionNumber", new JsonValue(Version.number)));
ex(() -> value.addChild("versionModifier", new JsonValue(Version.modifier)));
ex(() -> value.addChild("build", new JsonValue(Version.build)));
ex(() -> value.addChild("net", new JsonValue(fn)));
ex(() -> value.addChild("server", new JsonValue(fs)));