Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public CompletableFuture<Integer> getElevationAtAsync(final int x, final int z)
private int getElevationForLocation(final int x, final int z) {
final int height = world.getHighestBlockYAt(x, z) + 1;
final int logicalHeight = world.getLogicalHeight();
final CompletableFuture loadedChunk = getChunkAtAsync(x >> 4, y >> 4);
if (height >= logicalHeight) {
Block block = world.getBlockAt(x, logicalHeight, z);
int air = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public Border getWorldBorder() {
public int getElevation(final int x, final int z) {
final int height = world.getHeight(Heightmap.Types.MOTION_BLOCKING, x, z) + 1;
final int logicalHeight = world.getLogicalHeight();
final CompletableFuture loadedChunk = getChunkAtAsync(x >> 4, y >> 4);
if (height >= logicalHeight) {
BlockPos.MutableBlockPos pos = new BlockPos.MutableBlockPos(x, logicalHeight, z);
int air = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public Border getWorldBorder() {
public int getElevation(final int x, final int z) {
final int height = world.getHeight(Heightmap.Types.MOTION_BLOCKING, x, z) + 1;
final int logicalHeight = world.getLogicalHeight();
final CompletableFuture loadedChunk = getChunkAtAsync(x >> 4, y >> 4);
if (height >= logicalHeight) {
BlockPos.MutableBlockPos pos = new BlockPos.MutableBlockPos(x, logicalHeight, z);
int air = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public Border getWorldBorder() {
public int getElevation(final int x, final int z) {
final int height = world.getHeight(Heightmap.Types.MOTION_BLOCKING, x, z) + 1;
final int logicalHeight = world.getLogicalHeight();
final CompletableFuture loadedChunk = getChunkAtAsync(x >> 4, y >> 4);
if (height >= logicalHeight) {
BlockPos.MutableBlockPos pos = new BlockPos.MutableBlockPos(x, logicalHeight, z);
int air = 0;
Expand Down