mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
Revert "SPIGOT-4825: Clearly error on asynchronous tile access"
This reverts commit 5a37f43059
.
This commit is contained in:
parent
5a37f43059
commit
4f420d8274
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user