2023-04-10 08:30:55 +10:00
|
|
|
From 6e6c0c334d4e1725ee2420ee75e93ce91732aec1 Mon Sep 17 00:00:00 2001
|
2019-04-23 12:00:00 +10:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Sun, 12 Jan 2014 20:56:41 +1100
|
|
|
|
Subject: [PATCH] Try and Debug Crash Reports Crashing
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2023-04-10 08:30:55 +10:00
|
|
|
index 569f8597f..35bdb154f 100644
|
2019-04-23 12:00:00 +10:00
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2023-03-15 03:30:00 +11:00
|
|
|
@@ -1272,7 +1272,14 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
2021-11-22 09:00:00 +11:00
|
|
|
worldserver.tick(booleansupplier);
|
2020-06-25 10:00:00 +10:00
|
|
|
worldserver.timings.doTick.stopTiming(); // Spigot
|
|
|
|
} catch (Throwable throwable) {
|
2021-11-22 09:00:00 +11:00
|
|
|
- CrashReport crashreport = CrashReport.forThrowable(throwable, "Exception ticking world");
|
2020-06-25 10:00:00 +10:00
|
|
|
+ // Spigot Start
|
|
|
|
+ CrashReport crashreport;
|
|
|
|
+ try {
|
2021-11-22 09:00:00 +11:00
|
|
|
+ crashreport = CrashReport.forThrowable(throwable, "Exception ticking world");
|
2020-06-25 10:00:00 +10:00
|
|
|
+ } catch (Throwable t) {
|
|
|
|
+ throw new RuntimeException("Error generating crash report", t);
|
|
|
|
+ }
|
|
|
|
+ // Spigot End
|
2019-04-23 12:00:00 +10:00
|
|
|
|
2021-11-22 09:00:00 +11:00
|
|
|
worldserver.fillReportDetails(crashreport);
|
2020-06-25 10:00:00 +10:00
|
|
|
throw new ReportedException(crashreport);
|
2019-04-23 12:00:00 +10:00
|
|
|
--
|
2023-04-10 08:30:55 +10:00
|
|
|
2.40.0
|
2019-04-23 12:00:00 +10:00
|
|
|
|