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:
parent
aaf37cb47d
commit
acc349cf7d
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue