Skip to content

Commit

Permalink
fix incorrect max build height value
Browse files Browse the repository at this point in the history
solves the problem with the lines of air that would appear in the end
  • Loading branch information
granny committed Dec 4, 2024
1 parent 0510f3c commit 4b8e661
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bukkit/src/main/java/net/pl3x/map/bukkit/BukkitWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public int getMinBuildHeight() {

@Override
public int getMaxBuildHeight() {
return this.level.getMaxY();
return this.level.getMaxY() + 1;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void scanData(@NotNull Region region) {
continue;
}

int blockY = getWorld().getMaxBuildHeight() + 1;
int blockY = chunk.noHeightmap() ? getWorld().getMaxBuildHeight() : chunk.getWorldSurfaceY(blockX, blockZ) + 1;
int fluidY = 0;
BlockState blockstate;
BlockState fluidstate = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public int getMinBuildHeight() {

@Override
public int getMaxBuildHeight() {
return this.level.getMaxY();
return this.level.getMaxY() + 1;
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ shadowJar="8.3.3" # https://github.com/GradleUp/shadow

adventure="4.18.0-SNAPSHOT"
adventureBukkit="4.3.5-SNAPSHOT" # https://github.com/KyoriPowered/adventure-platform
adventureFabric="6.1.0-SNAPSHOT" # https://github.com/KyoriPowered/adventure-platform-fabric
adventureFabric="6.1.1-SNAPSHOT" # https://github.com/KyoriPowered/adventure-platform-fabric

cloud="2.0.0" # https://github.com/incendo/cloud
cloud-minecraft="2.0.0-beta.10" # https://github.com/Incendo/cloud-minecraft
Expand Down

0 comments on commit 4b8e661

Please sign in to comment.