Skip to content

Commit

Permalink
Fix heightmap brush hardcoding world min and max Y
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed May 9, 2024
1 parent 336c357 commit ae61fa9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void build(EditSession editSession, BlockVector3 position, Pattern patter
for (int offZ = -size; offZ <= size; offZ++) {
int posX = position.x() + offX;
int posZ = position.z() + offZ;
int posY = editSession.getHighestTerrainBlock(posX, posZ, 0, 255, editSession.getMask());
int posY = editSession.getHighestTerrainBlock(posX, posZ, editSession.getMinimumPoint().y(), editSession.getMaximumPoint().y(), editSession.getMask());
BlockVector3 block = BlockVector3.at(posX, posY, posZ);
if (editSession.getMask() != null && !editSession.getMask().test(block)) {
continue;
Expand Down

0 comments on commit ae61fa9

Please sign in to comment.