From 4f420d82745e85633df693810b17f1a208d21904 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 1 May 2019 08:51:01 +1000 Subject: [PATCH] Revert "SPIGOT-4825: Clearly error on asynchronous tile access" This reverts commit 5a37f430592a2de6abb3a6ec9674200f9c7bc32d. --- nms-patches/World.patch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nms-patches/World.patch b/nms-patches/World.patch index 4bd60fff41..fe43a75119 100644 --- a/nms-patches/World.patch +++ b/nms-patches/World.patch @@ -312,7 +312,7 @@ } } } -@@ -626,14 +838,21 @@ +@@ -626,6 +838,7 @@ } } @@ -320,11 +320,9 @@ @Nullable @Override public TileEntity getTileEntity(BlockPosition blockposition) { - if (isInsideWorld(blockposition)) { - return null; +@@ -634,6 +847,12 @@ } else if (!this.isClientSide && Thread.currentThread() != this.c) { -- return null; -+ throw new IllegalStateException("Asynchronous tile access"); // CraftBukkit - catch + return null; } else { + // CraftBukkit start + if (capturedTileEntities.containsKey(blockposition)) {