2014-08-31 20:56:05 +02:00
|
|
|
From 0617e6f461cf0086a576eb5e2a1a911df7243ea2 Mon Sep 17 00:00:00 2001
|
2014-08-15 21:35:58 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Fri, 15 Aug 2014 00:56:41 -0400
|
|
|
|
Subject: [PATCH] Fix Corrupted Trapped Chest
|
|
|
|
|
|
|
|
The CraftBukkit code that auto repairs corrupted tile entities never was updated for Trapped Chest.
|
|
|
|
If a Trapped Chest gets its Tile Entity corrupted, it will crash the server every time the chunk is loaded.
|
|
|
|
|
|
|
|
This will now fix Trapped Chests too.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
index d93eb8b..f9dc0fc 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
@@ -87,7 +87,7 @@ public class WorldServer extends World {
|
|
|
|
TileEntity result = super.getTileEntity(i, j, k);
|
|
|
|
Block type = getType(i, j, k);
|
|
|
|
|
|
|
|
- if (type == Blocks.CHEST) {
|
|
|
|
+ if (type == Blocks.CHEST || type == Blocks.TRAPPED_CHEST) { // Spigot
|
|
|
|
if (!(result instanceof TileEntityChest)) {
|
|
|
|
result = fixTileEntity(i, j, k, type, result);
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|