3
0
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:
Jordan 2022-02-24 10:33:37 +01:00 committet von GitHub
Ursprung fc2662e51e
Commit b8ab2a5204
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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(