Skip to content

Commit

Permalink
Added crash-proofing to Logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
whichonespink44 committed Nov 8, 2016
1 parent e1462e9 commit 3421f23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/rtg/util/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public static void error(String format, Object... data) {
public static void fatal(String message, Throwable throwable, Object... data) {

FMLLog.log(Level.FATAL, "[RTG-FATAL] " + message, data);
Minecraft.getMinecraft().crashed(new CrashReport(message, throwable));

try {
Minecraft.getMinecraft().crashed(new CrashReport(message, throwable));
}
catch (Exception e) {
;
}
}
}

0 comments on commit 3421f23

Please sign in to comment.