mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-11-01 09:09:35 +00:00
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 91eeb4fbd74277d0cc8452656225d3a3f4c3d21f 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 4fece68f9..1fbf893eb 100644
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
@@ -1032,7 +1032,14 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
|
worldserver.doTick(booleansupplier);
|
|
worldserver.timings.doTick.stopTiming(); // Spigot
|
|
} catch (Throwable throwable) {
|
|
- CrashReport crashreport = CrashReport.a(throwable, "Exception ticking world");
|
|
+ // Spigot Start
|
|
+ CrashReport crashreport;
|
|
+ try {
|
|
+ crashreport = CrashReport.a(throwable, "Exception ticking world");
|
|
+ } catch (Throwable t) {
|
|
+ throw new RuntimeException("Error generating crash report", t);
|
|
+ }
|
|
+ // Spigot End
|
|
|
|
worldserver.a(crashreport);
|
|
throw new ReportedException(crashreport);
|
|
--
|
|
2.20.1
|
|
|