Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Lazy heightmap range fix
Dieser Commit ist enthalten in:
Ursprung
9e25c736a0
Commit
f7d375c76c
@ -286,7 +286,12 @@ public class HeightMap {
|
||||
if (existing.getBlockType().getMaterial().isMovementBlocker()) {
|
||||
int y0 = newHeight - 1;
|
||||
for (int setY = y0, getY = curHeight - 1; setY >= curHeight; setY--, getY--) {
|
||||
BlockState get = session.getBlock(xr, getY, zr);
|
||||
BlockState get;
|
||||
if (getY >= 0 && getY < 256) {
|
||||
get = session.getBlock(xr, getY, zr);
|
||||
} else {
|
||||
get = BlockTypes.AIR.getDefaultState();
|
||||
}
|
||||
if (get != BlockTypes.AIR.getDefaultState()) tmpBlock = get;
|
||||
session.setBlock(xr, setY, zr, tmpBlock);
|
||||
++blocksChanged;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren