13
0
geforkt von Mirrors/Paper

Remove getUnloadingChunkHolder check

It always returns null now. So it could NPE and is not useful.
Dieser Commit ist enthalten in:
Jason Penilla 2024-06-18 12:51:40 -07:00
Ursprung aaf37cb47d
Commit acc349cf7d

Datei anzeigen

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