1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-18 11:22:15 +01:00

Remove getUnloadingChunkHolder check

It always returns null now. So it could NPE and is not useful.
This commit is contained in:
Jason Penilla 2024-06-18 12:51:40 -07:00
parent aaf37cb47d
commit acc349cf7d

View file

@ -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;
}