2016-03-29 03:01:42 +02:00
|
|
|
From 31512ee99a551bd2cfb70cc1dc3351a513309310 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
|
|
|
|
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);
|
|
|
|
|
|
|
|
--
|
2016-03-22 01:46:54 +01:00
|
|
|
2.7.4
|
2016-03-20 20:24:24 +01:00
|
|
|
|