From e985ffabb28be81bb473239392f803cf15b1d54e Mon Sep 17 00:00:00 2001 From: Spottedleaf <Spottedleaf@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:42:48 -0700 Subject: [PATCH] Fix ChunkHolder#getFullChunkNow returning non-null when it should not In the new chunk system, the chunk is only at FULL when either the FULL callbacks have been invoked or during the FULL callbacks. --- patches/server/Chunk-System-Starlight-from-Moonrise.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Chunk-System-Starlight-from-Moonrise.patch b/patches/server/Chunk-System-Starlight-from-Moonrise.patch index 67627ff4eb..8cb2a39a93 100644 --- a/patches/server/Chunk-System-Starlight-from-Moonrise.patch +++ b/patches/server/Chunk-System-Starlight-from-Moonrise.patch @@ -22899,7 +22899,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public LevelChunk getFullChunkNow() { // Note: We use the oldTicketLevel for isLoaded checks. - if (!ChunkLevel.fullStatus(this.oldTicketLevel).isOrAfter(FullChunkStatus.FULL)) return null; -+ if (!ChunkLevel.fullStatus(this.newChunkHolder.oldTicketLevel).isOrAfter(FullChunkStatus.FULL)) return null; // Paper - rewrite chunk system ++ if (!this.newChunkHolder.isFullChunkReady()) return null; // Paper - rewrite chunk system return this.getFullChunkNowUnchecked(); }