geforkt von Mirrors/Paper
5b6dfb3463
This work is 100% unfinished. I am pushing it up so that we as a team can work on this update. Do not try to use this branch. You will fail.
27 Zeilen
986 B
Diff
27 Zeilen
986 B
Diff
From 944a34bbc6cbfe42ca5f51d0a7751af51b7b2bfa Mon Sep 17 00:00:00 2001
|
|
From: Daniel Ennis <dennis@icontact.com>
|
|
Date: Sun, 20 Mar 2016 15:22:42 -0400
|
|
Subject: [PATCH] Catch Async PlayerChunkMap operations
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
index 6ece565c5..4d888d6d4 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
@@ -443,10 +443,12 @@ public class PlayerChunkMap {
|
|
}
|
|
|
|
public void a(PlayerChunk playerchunk) {
|
|
+ org.spigotmc.AsyncCatcher.catchOp("Async Player Chunk Add"); // Paper
|
|
this.f.add(playerchunk);
|
|
}
|
|
|
|
public void b(PlayerChunk playerchunk) {
|
|
+ org.spigotmc.AsyncCatcher.catchOp("Async Player Chunk Remove"); // Paper
|
|
ChunkCoordIntPair chunkcoordintpair = playerchunk.a();
|
|
long i = d(chunkcoordintpair.x, chunkcoordintpair.z);
|
|
|
|
--
|
|
2.18.0
|
|
|