Skip to content

Commit

Permalink
Changed IslandLevelCalculator minHeight to world minHeight for negati…
Browse files Browse the repository at this point in the history
…ve blocks height support since 1.18. (#246)
  • Loading branch information
Pirgosth committed Dec 19, 2021
1 parent 50074ac commit 4a21e4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private void scanAsync(Chunk chunk) {
continue;
}
// Only count to the highest block in the world for some optimization
for (int y = 0; y < chunk.getWorld().getMaxHeight(); y++) {
for (int y = chunk.getWorld().getMinHeight(); y < chunk.getWorld().getMaxHeight(); y++) {
BlockData blockData = chunkSnapshot.getBlockData(x, y, z);
boolean belowSeaLevel = seaHeight > 0 && y <= seaHeight;
// Slabs can be doubled, so check them twice
Expand Down

0 comments on commit 4a21e4b

Please sign in to comment.