2018-08-06 01:46:43 +02:00
|
|
|
From ff5fed386f5e6482a0e6479e31ee5ba4557d2b66 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
|
2018-07-23 10:39:55 +02:00
|
|
|
index 8f6ce6bf1a..5d5f6f6328 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
|
2018-07-18 02:08:13 +02:00
|
|
|
@@ -234,6 +234,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;
|
|
|
|
}
|
|
|
|
--
|
2018-07-04 09:55:24 +02:00
|
|
|
2.18.0
|
2017-07-27 05:11:09 +02:00
|
|
|
|