2018-07-19 12:42:43 +08:00
|
|
|
From e6e8be0132a9f4e4c4b4b2fd92e6e3a18a8fd805 Mon Sep 17 00:00:00 2001
|
2016-03-21 03:24:24 +08:00
|
|
|
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
|
2018-07-15 09:53:17 +08:00
|
|
|
index 6ece565c5..4d888d6d4 100644
|
2016-03-21 03:24:24 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
2018-07-15 09:53:17 +08:00
|
|
|
@@ -443,10 +443,12 @@ public class PlayerChunkMap {
|
2016-03-21 03:24:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
--
|
2018-07-04 15:55:24 +08:00
|
|
|
2.18.0
|
2016-03-21 03:24:24 +08:00
|
|
|
|