13
0
geforkt von Mirrors/Paper

Add missing null check to getFullChunkIfLoaded

fixes #10915
Dieser Commit ist enthalten in:
Jason Penilla 2024-06-18 18:27:50 -07:00
Ursprung acc349cf7d
Commit 6ae5176a52

Datei anzeigen

@ -25128,7 +25128,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ @Override
+ public final LevelChunk moonrise$getFullChunkIfLoaded(final int chunkX, final int chunkZ) {
+ final ca.spottedleaf.moonrise.patches.chunk_system.scheduling.NewChunkHolder newChunkHolder = this.moonrise$getChunkTaskScheduler().chunkHolderManager.getChunkHolder(ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkKey(chunkX, chunkZ));
+ if (!newChunkHolder.isFullChunkReady()) {
+ if (newChunkHolder == null || !newChunkHolder.isFullChunkReady()) {
+ return null;
+ }
+