19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From c502d8318bc17af0363db62a52b546c7d451cc16 Mon Sep 17 00:00:00 2001
|
|
From: md_5 <git@md-5.net>
|
|
Date: Wed, 18 Dec 2013 13:39:14 +1100
|
|
Subject: [PATCH] Log Cause of Unexpected Exceptions
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
index cdef354..6ff5211 100644
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
@@ -520,6 +520,12 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IAs
|
|
}
|
|
} catch (Throwable throwable) {
|
|
MinecraftServer.LOGGER.error("Encountered an unexpected exception", throwable);
|
|
+ // Spigot Start
|
|
+ if ( throwable.getCause() != null )
|
|
+ {
|
|
+ MinecraftServer.LOGGER.error( "\tCause of unexpected exception was", throwable.getCause() );
|
|
+ }
|
|
+ // Spigot End
|
|
CrashReport crashreport = null;
|
|
|
|
if (throwable instanceof ReportedException) {
|
|
--
|
|
2.1.0
|
|
|