Skip to content

Commit

Permalink
Fix NPE in ServerLevelMixin#moonrise$getFullChunkIfLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Spottedleaf committed Jun 19, 2024
1 parent 502cee8 commit ed3e278
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private void init(MinecraftServer minecraftServer, Executor executor,
@Override
public final LevelChunk moonrise$getFullChunkIfLoaded(final int chunkX, final int chunkZ) {
final NewChunkHolder newChunkHolder = this.moonrise$getChunkTaskScheduler().chunkHolderManager.getChunkHolder(CoordinateUtils.getChunkKey(chunkX, chunkZ));
if (!newChunkHolder.isFullChunkReady()) {
if (newChunkHolder == null || !newChunkHolder.isFullChunkReady()) {
return null;
}

Expand Down

0 comments on commit ed3e278

Please sign in to comment.