From 6ae5176a52231e7fb7a178cb52a36b4d806895c0 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:27:50 -0700 Subject: [PATCH] Add missing null check to getFullChunkIfLoaded fixes #10915 --- 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 ac87b56a73..1524fc1e16 100644 --- a/patches/server/Chunk-System-Starlight-from-Moonrise.patch +++ b/patches/server/Chunk-System-Starlight-from-Moonrise.patch @@ -25128,7 +25128,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + @Override + public final LevelChunk moonrise$getFullChunkIfLoaded(final int chunkX, final int chunkZ) { + final ca.spottedleaf.moonrise.patches.chunk_system.scheduling.NewChunkHolder newChunkHolder = this.moonrise$getChunkTaskScheduler().chunkHolderManager.getChunkHolder(ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkKey(chunkX, chunkZ)); -+ if (!newChunkHolder.isFullChunkReady()) { ++ if (newChunkHolder == null || !newChunkHolder.isFullChunkReady()) { + return null; + } +