mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 06:58:34 +00:00
Don't allow heightmap-based brushes to edit the entire world "depth" (#1617)
Fixes #1614 Co-authored-by: Alex <mc.cache@web.de>
This commit is contained in:
@ -46,7 +46,7 @@ public interface HeightMap {
|
|||||||
) throws MaxChangedBlocksException {
|
) throws MaxChangedBlocksException {
|
||||||
BlockVector3 top = session.getMaximumPoint();
|
BlockVector3 top = session.getMaximumPoint();
|
||||||
int maxY = top.getBlockY();
|
int maxY = top.getBlockY();
|
||||||
Location min = new Location(session.getWorld(), pos.subtract(size, maxY, size).toVector3());
|
Location min = new Location(session.getWorld(), pos.subtract(size, size, size).toVector3());
|
||||||
BlockVector3 max = pos.add(size, maxY, size);
|
BlockVector3 max = pos.add(size, maxY, size);
|
||||||
Region region = new CuboidRegion(session.getWorld(), min.toBlockPoint(), max);
|
Region region = new CuboidRegion(session.getWorld(), min.toBlockPoint(), max);
|
||||||
com.sk89q.worldedit.math.convolution.HeightMap heightMap = new com.sk89q.worldedit.math.convolution.HeightMap(
|
com.sk89q.worldedit.math.convolution.HeightMap heightMap = new com.sk89q.worldedit.math.convolution.HeightMap(
|
||||||
|
Reference in New Issue
Block a user