mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Do not cancel chunk load on ticket level change (#5978)
New chunk system doesn't do cancellations anymore. Co-authored-by: Spottedleaf <spottedleaf@users.noreply.github.com>
This commit is contained in:
parent
65a6e249ea
commit
254ac170de
1 changed files with 0 additions and 13 deletions
|
@ -2343,19 +2343,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
ChunkHolder.FullChunkStatus playerchunk_state = ChunkHolder.getFullChunkStatus(this.oldTicketLevel);
|
||||
ChunkHolder.FullChunkStatus playerchunk_state1 = ChunkHolder.getFullChunkStatus(this.ticketLevel);
|
||||
// CraftBukkit start
|
||||
@@ -0,0 +0,0 @@ public class ChunkHolder {
|
||||
}
|
||||
});
|
||||
|
||||
+ // Paper start
|
||||
+ if (!flag1) {
|
||||
+ chunkStorage.level.asyncChunkTaskManager.cancelChunkLoad(this.pos.x, this.pos.z);
|
||||
+ }
|
||||
+ // Paper end
|
||||
+
|
||||
for (int i = flag1 ? chunkstatus1.getIndex() + 1 : 0; i <= chunkstatus.getIndex(); ++i) {
|
||||
completablefuture = (CompletableFuture) this.futures.get(i);
|
||||
if (completablefuture == null) {
|
||||
diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/level/ChunkMap.java
|
||||
|
|
Loading…
Reference in a new issue