AT bullshit

This commit is contained in:
MiniDigger | Martin
2021-06-16 00:24:12 +02:00
parent 2eb94202ea
commit a1d90ea32f
48 changed files with 191 additions and 638 deletions

View File

@@ -162,7 +162,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper end
+
@Nullable
public final ChunkHolder getVisibleChunkIfPresent(long pos) { // Paper - protected -> public
public ChunkHolder getVisibleChunkIfPresent(long pos) {
- return (ChunkHolder) this.visibleChunkMap.get(pos);
+ // Paper start - mt safe get
+ if (Thread.currentThread() != this.level.thread) {