mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-04-23 03:38:15 +02:00
60/103 minecraft source files applied
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
--- a/net/minecraft/CrashReport.java
|
||||
+++ b/net/minecraft/CrashReport.java
|
||||
@@ -30,6 +_,7 @@
|
||||
private boolean trackingStackTrace = true;
|
||||
private StackTraceElement[] uncategorizedStackTrace = new StackTraceElement[0];
|
||||
private final SystemReport systemReport = new SystemReport();
|
||||
+ private List<String> extraInfo = List.of("", "DO NOT REPORT THIS TO PAPER! REPORT TO PURPUR INSTEAD!", ""); // Purpur - Rebrand
|
||||
|
||||
public CrashReport(final String title, final Throwable t) {
|
||||
this.title = title;
|
||||
@@ -129,7 +_,7 @@
|
||||
}
|
||||
|
||||
public String getFriendlyReport(final ReportType reportType) {
|
||||
- return this.getFriendlyReport(reportType, List.of());
|
||||
+ return this.getFriendlyReport(reportType, extraInfo); // Purpur - Rebrand
|
||||
}
|
||||
|
||||
public @Nullable Path getSaveFile() {
|
||||
@@ -159,7 +_,7 @@
|
||||
}
|
||||
|
||||
public boolean saveToFile(final Path file, final ReportType reportType) {
|
||||
- return this.saveToFile(file, reportType, List.of());
|
||||
+ return this.saveToFile(file, reportType, extraInfo); // Purpur - Rebrand
|
||||
}
|
||||
|
||||
public SystemReport getSystemReport() {
|
||||
Reference in New Issue
Block a user