2015-02-26 11:40:16 +01:00
|
|
|
From 3daeb7c2a7bb18591c0d013308f331f9938cb01d 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
|
2015-01-05 03:01:24 +01:00
|
|
|
index 1d6be5f..439bb00 100644
|
2014-08-15 21:35:58 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
2015-01-05 03:01:24 +01:00
|
|
|
@@ -112,7 +112,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
|
2014-11-28 02:17:45 +01:00
|
|
|
TileEntity result = super.getTileEntity(pos);
|
|
|
|
Block type = getType(pos).getBlock();
|
2014-08-15 21:35:58 +02:00
|
|
|
|
|
|
|
- if (type == Blocks.CHEST) {
|
|
|
|
+ if (type == Blocks.CHEST || type == Blocks.TRAPPED_CHEST) { // Spigot
|
|
|
|
if (!(result instanceof TileEntityChest)) {
|
2014-11-28 02:17:45 +01:00
|
|
|
result = fixTileEntity(pos, type, result);
|
2014-08-15 21:35:58 +02:00
|
|
|
}
|
|
|
|
--
|
2014-11-28 02:17:45 +01:00
|
|
|
2.1.0
|
2014-08-15 21:35:58 +02:00
|
|
|
|