Archiviert
13
0

Swallow StackOverflowError when updating physics.

Prevents an otherwise unneeded crash.
Dieser Commit ist enthalten in:
David 2014-04-21 17:01:24 +10:00 committet von md_5
Ursprung 9624ae9d3d
Commit 755ba081f2

Datei anzeigen

@ -0,0 +1,25 @@
From 68d31fb7ae5082fdb5cb31fe42304d751028a92e Mon Sep 17 00:00:00 2001
From: David <dmck2b@gmail.com>
Date: Mon, 21 Apr 2014 17:00:53 +1000
Subject: [PATCH] Swallow StackOverflowError when updating physics.
Prevents an otherwise unneeded crash.
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
index 52ed625..6dcf6ee 100644
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
@@ -531,6 +531,10 @@ public abstract class World implements IBlockAccess {
// CraftBukkit end
block1.doPhysics(this, i, j, k, block);
+ // Spigot start - Prevent NoClassDefFoundError and unneeded crash
+ } catch (StackOverflowError ignore) {
+ Bukkit.getLogger().severe("Encountered stack overflow whilst updating neighbours");
+ // Spigot end
} catch (Throwable throwable) {
CrashReport crashreport = CrashReport.a(throwable, "Exception while updating neighbours");
CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Block being updated");
--
1.9.1