From aa054b6838caa009a0e6be333c138a5c69418def Mon Sep 17 00:00:00 2001 From: Daniel Ennis Date: Sun, 20 Mar 2016 15:24:24 -0400 Subject: [PATCH] Catch Async PlayerChunkMap operations - Fixes #113 --- ...atch-Async-PlayerChunkMap-operations.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Spigot-Server-Patches/0097-Catch-Async-PlayerChunkMap-operations.patch diff --git a/Spigot-Server-Patches/0097-Catch-Async-PlayerChunkMap-operations.patch b/Spigot-Server-Patches/0097-Catch-Async-PlayerChunkMap-operations.patch new file mode 100644 index 0000000000..58ab3b7ebc --- /dev/null +++ b/Spigot-Server-Patches/0097-Catch-Async-PlayerChunkMap-operations.patch @@ -0,0 +1,26 @@ +From b5dd19cacf556dcf9fe1e3654753e5c57ef5aa57 Mon Sep 17 00:00:00 2001 +From: Daniel Ennis +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 5421026..7100710 100644 +--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java ++++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java +@@ -415,10 +415,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.5.4 (Apple Git-61) +