From acc349cf7d4d39a46d6ce2437aab5f7779a72432 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:51:40 -0700 Subject: [PATCH] Remove getUnloadingChunkHolder check It always returns null now. So it could NPE and is not useful. --- patches/server/Fix-CraftWorld-isChunkGenerated.patch | 3 --- 1 file changed, 3 deletions(-) diff --git a/patches/server/Fix-CraftWorld-isChunkGenerated.patch b/patches/server/Fix-CraftWorld-isChunkGenerated.patch index 3f92146ee1..4afee8c4c8 100644 --- a/patches/server/Fix-CraftWorld-isChunkGenerated.patch +++ b/patches/server/Fix-CraftWorld-isChunkGenerated.patch @@ -24,9 +24,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + }, world.getChunkSource().mainThreadProcessor).join(); + } + ChunkAccess chunk = world.getChunkSource().getChunkAtImmediately(x, z); -+ if (chunk == null) { -+ chunk = world.getChunkSource().chunkMap.getUnloadingChunkHolder(x, z).getLatestChunk(); -+ } + if (chunk != null) { + return chunk instanceof ImposterProtoChunk || chunk instanceof net.minecraft.world.level.chunk.LevelChunk; }