mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 04:01:55 +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
@ -24,9 +24,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }, world.getChunkSource().mainThreadProcessor).join();
|
+ }, world.getChunkSource().mainThreadProcessor).join();
|
||||||
+ }
|
+ }
|
||||||
+ ChunkAccess chunk = world.getChunkSource().getChunkAtImmediately(x, z);
|
+ ChunkAccess chunk = world.getChunkSource().getChunkAtImmediately(x, z);
|
||||||
+ if (chunk == null) {
|
|
||||||
+ chunk = world.getChunkSource().chunkMap.getUnloadingChunkHolder(x, z).getLatestChunk();
|
|
||||||
+ }
|
|
||||||
+ if (chunk != null) {
|
+ if (chunk != null) {
|
||||||
+ return chunk instanceof ImposterProtoChunk || chunk instanceof net.minecraft.world.level.chunk.LevelChunk;
|
+ return chunk instanceof ImposterProtoChunk || chunk instanceof net.minecraft.world.level.chunk.LevelChunk;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user