diff --git a/Spigot-Server-Patches/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch b/Spigot-Server-Patches/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch index 4154f9899..17f619aba 100644 --- a/Spigot-Server-Patches/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch +++ b/Spigot-Server-Patches/Implement-Chunk-Priority-Urgency-System-for-Chunks.patch @@ -462,11 +462,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 ichunkaccess = (IChunkAccess) ((Either) completablefuture.join()).map((ichunkaccess1) -> { return ichunkaccess1; @@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider { - PlayerChunk.State currentChunkState = PlayerChunk.getChunkState(playerchunk.getTicketLevel()); - currentlyUnloading = (oldChunkState.isAtLeast(PlayerChunk.State.BORDER) && !currentChunkState.isAtLeast(PlayerChunk.State.BORDER)); - } -- if (flag && !currentlyUnloading) { -+ if (flag) { // Paper - don't care about unloading state + if (flag && !currentlyUnloading) { // CraftBukkit end this.chunkMapDistance.a(TicketType.UNKNOWN, chunkcoordintpair, l, chunkcoordintpair); + if (isUrgent) this.chunkMapDistance.markUrgent(chunkcoordintpair); // Paper @@ -494,11 +490,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } private boolean a(@Nullable PlayerChunk playerchunk, int i) { -- return playerchunk == null || playerchunk.oldTicketLevel > i; // CraftBukkit using oldTicketLevel for isLoaded checks -+ return playerchunk == null || playerchunk.getTicketLevel() > i; // CraftBukkit using oldTicketLevel for isLoaded checks - Paper - keep vanilla check - } - - public boolean isLoaded(int i, int j) { @@ -0,0 +0,0 @@ public class ChunkProviderServer extends IChunkProvider { return this.serverThreadQueue.executeNext(); }