mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-02-03 14:11:35 +01:00
Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246)
This commit is contained in:
parent
50074ac1df
commit
4a21e4b30c
@ -433,7 +433,7 @@ public class IslandLevelCalculator {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user