PaperMC/paper-server/patches/sources/net/minecraft/CrashReport.java.patch

23 lines
846 B
Diff
Raw Normal View History

2021-03-15 23:00:00 +01:00
--- a/net/minecraft/CrashReport.java
+++ b/net/minecraft/CrashReport.java
2024-12-14 19:06:52 +01:00
@@ -32,8 +_,10 @@
private final SystemReport systemReport = new SystemReport();
2024-12-14 19:06:52 +01:00
public CrashReport(String title, Throwable exception) {
+ io.papermc.paper.util.StacktraceDeobfuscator.INSTANCE.deobfuscateThrowable(exception); // Paper
this.title = title;
this.exception = exception;
+ this.systemReport.setDetail("CraftBukkit Information", new org.bukkit.craftbukkit.CraftCrashReport()); // CraftBukkit
}
public String getTitle() {
2024-12-14 19:06:52 +01:00
@@ -218,7 +_,7 @@
2024-01-18 23:25:09 +01:00
}
public static void preload() {
- MemoryReserve.allocate();
2024-12-14 19:06:52 +01:00
+ //MemoryReserve.allocate(); // Paper - Disable memory reserve allocating
new CrashReport("Don't panic!", new Throwable()).getFriendlyReport(ReportType.CRASH);
2024-01-18 23:25:09 +01:00
}
}