net.minecraft

This commit is contained in:
Noah van der Aa
2024-12-14 19:06:52 +01:00
parent 2a274e38c6
commit b602dc968e
4 changed files with 46 additions and 57 deletions

View File

@@ -0,0 +1,22 @@
--- a/net/minecraft/CrashReport.java
+++ b/net/minecraft/CrashReport.java
@@ -32,8 +_,10 @@
private final SystemReport systemReport = new SystemReport();
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() {
@@ -218,7 +_,7 @@
}
public static void preload() {
- MemoryReserve.allocate();
+ //MemoryReserve.allocate(); // Paper - Disable memory reserve allocating
new CrashReport("Don't panic!", new Throwable()).getFriendlyReport(ReportType.CRASH);
}
}