Paper/Spigot-Server-Patches/0079-Catch-Async-PlayerChunkMap-operations.patch

27 lines
984 B
Diff
Raw Normal View History

2018-01-11 06:31:19 +01:00
From 42feef1fd45b5b935b0bbb322e3d3e48abc66249 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
2018-01-11 06:31:19 +01:00
index 9627a9be..ad1d90b5 100644
--- 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 {
}
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-01-11 06:31:19 +01:00
2.14.3