mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 01:39:58 +03:00
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From c0c04616726ebba8c0581b1ff32b942093e9e236 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index e91aea6c9a..42c39e7804 100644
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
@@ -1269,7 +1269,14 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
|
worldserver.tick(booleansupplier);
|
|
worldserver.timings.doTick.stopTiming(); // Spigot
|
|
} catch (Throwable throwable) {
|
|
- CrashReport crashreport = CrashReport.forThrowable(throwable, "Exception ticking world");
|
|
+ // Spigot Start
|
|
+ CrashReport crashreport;
|
|
+ try {
|
|
+ crashreport = CrashReport.forThrowable(throwable, "Exception ticking world");
|
|
+ } catch (Throwable t) {
|
|
+ throw new RuntimeException("Error generating crash report", t);
|
|
+ }
|
|
+ // Spigot End
|
|
|
|
worldserver.fillReportDetails(crashreport);
|
|
throw new ReportedException(crashreport);
|
|
--
|
|
2.42.0
|
|
|