mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
Catch Async PlayerChunkMap operations - Fixes #113
This commit is contained in:
parent
a1651ffd8e
commit
aa054b6838
@ -0,0 +1,26 @@
|
|||||||
|
From b5dd19cacf556dcf9fe1e3654753e5c57ef5aa57 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
|
||||||
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user