mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-01-27 10:41:33 +01:00
getHighestBlockYAt() does not detect heads so check full height of world
Fixes https://github.com/BentoBoxWorld/Level/issues/193
This commit is contained in:
parent
bfed6c75eb
commit
e2d3150fa2
@ -377,7 +377,7 @@ public class IslandLevelCalculator {
|
||||
continue;
|
||||
}
|
||||
// Only count to the highest block in the world for some optimization
|
||||
for (int y = 0; y < chunkSnapshot.getHighestBlockYAt(x, z); y++) {
|
||||
for (int y = 0; y < chunk.getWorld().getMaxHeight(); y++) {
|
||||
BlockData blockData = chunkSnapshot.getBlockData(x, y, z);
|
||||
int seaHeight = addon.getPlugin().getIWM().getSeaHeight(island.getWorld());
|
||||
boolean belowSeaLevel = seaHeight > 0 && y <= seaHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user