mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-11-21 01:13:09 +08:00
Fix heightmap brush hardcoding world min and max Y
This commit is contained in:
parent
336c357521
commit
ae61fa9fbc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user