Skip to content

Commit

Permalink
fix the missing if statement for loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Sep 6, 2024
1 parent 9515dcb commit 8316e05
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public MinerRegionCache(ServerLevel level, BlockPos centerPos, BlockPos offsetPo
chunkAccess = chunksource.getChunkNow(x, z);// returns null if not loaded
}
this.chunks[x - this.centerX][z - this.centerZ] = chunkAccess;
LOGGER.error("Failed to load chunk for searcher cache: {}, {}", x, z);
if (chunkAccess == null) {
LOGGER.error("Failed to load chunk for searcher cache: {}, {}", x, z);
}
}
}

Expand Down

0 comments on commit 8316e05

Please sign in to comment.