Skip to content

Commit 33b4205

Browse files
committed
feat: allow disabling the crash report improver
1 parent 92300be commit 33b4205

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/java/com/falsepattern/lib/internal/logging/CrashImprover.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ public static void probe() {
4949
}
5050

5151
public static void injectLatest(FileWriter writer) {
52+
if ("iAgreeAndIWillNotCreateBugReportsToFalsePatternWithTheseFiles".equals(System.getProperty("ISABLE_FALSEPATTERN_CRASH_REPORT_IMPROVER_NO_UPSTREAM_SUPPORT_WILL_BE_PROVIDED_IF_YOU_ENABLE_THIS_FLAG"))) {
53+
try {
54+
writer.write("\n\n\n\n\nFalsePatternLib CRASH REPORT IMPROVER DISABLED. NO UPSTREAM SUPPORT WILL BE PROVIDED.\n\n\n\n\n");
55+
} catch (IOException e) {
56+
}
57+
return;
58+
}
5259
val potentialLogs = Arrays.asList(new File(Launch.minecraftHome, "logs/fml-client-latest.log"),
5360
new File(Launch.minecraftHome, "logs/fml-server-latest.log"));
5461
for (val file: potentialLogs) {

0 commit comments

Comments
 (0)