2017-10-05 15:38:21 +02:00
|
|
|
From bda3776e61c8f1859ad361f2a7a89d75c7971bff Mon Sep 17 00:00:00 2001
|
2017-07-27 05:11:09 +02:00
|
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
|
|
Date: Sat, 22 Jul 2017 15:22:59 +0100
|
|
|
|
Subject: [PATCH] Add missing coverages for getTileEntity in order to attempt
|
|
|
|
to avoid exeptions when calling getTileEntity
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
2017-09-18 13:04:01 +02:00
|
|
|
index 2ac5caaa4..c03be509f 100644
|
2017-07-27 05:11:09 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
2017-09-18 13:04:01 +02:00
|
|
|
@@ -235,6 +235,13 @@ public class WorldServer extends World implements IAsyncTaskHandler {
|
2017-07-27 05:11:09 +02:00
|
|
|
result = fixTileEntity(pos, type, result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ // Paper Start - add TE fix checks for shulkers, see nms.BlockShulkerBox
|
|
|
|
+ else if (type instanceof BlockShulkerBox) {
|
|
|
|
+ if (!(result instanceof TileEntityShulkerBox)) {
|
|
|
|
+ result = fixTileEntity(pos, type, result);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
--
|
2017-10-05 15:38:21 +02:00
|
|
|
2.14.2
|
2017-07-27 05:11:09 +02:00
|
|
|
|