Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-07 20:10:06 +01:00
Don't allow heightmap-based brushes to edit the entire world "depth" (#1617)
Fixes #1614 Co-authored-by: Alex <mc.cache@web.de>
Dieser Commit ist enthalten in:
Ursprung
fc2662e51e
Commit
b8ab2a5204
@ -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(
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren