Add missing null check to getFullChunkIfLoaded

fixes #10915
This commit is contained in:
Jason Penilla 2024-06-18 18:27:50 -07:00
parent acc349cf7d
commit 6ae5176a52

View file

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