2017-05-05 01:08:52 +02:00
|
|
|
From d47e6d67d27ac3f30c4c14493a48e9d5f53651d4 Mon Sep 17 00:00:00 2001
|
2016-03-20 20:24:24 +01: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
|
2017-05-05 01:08:52 +02:00
|
|
|
index cfac05750..0a0b5261b 100644
|
2016-03-20 20:24:24 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
2017-01-31 05:33:54 +01:00
|
|
|
@@ -469,10 +469,12 @@ public class PlayerChunkMap {
|
2016-03-20 20:24:24 +01: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);
|
|
|
|
|
|
|
|
--
|
2017-05-05 01:08:52 +02:00
|
|
|
2.12.2
|
2016-03-20 20:24:24 +01:00
|
|
|
|