Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Make angle pattern slope a little more readable
Dieser Commit ist enthalten in:
Ursprung
cf0a21d312
Commit
3e85369765
@ -37,30 +37,14 @@ public abstract class AnglePattern extends AbstractPattern {
|
||||
if (!block.getBlockType().getMaterial().isMovementBlocker()) {
|
||||
return -1;
|
||||
}
|
||||
int slope = Math.abs(
|
||||
extent.getNearestSurfaceTerrainBlock(x + distance, z, y, minY, maxY) - extent
|
||||
.getNearestSurfaceTerrainBlock(x - distance, z, y, minY, maxY)) * 7;
|
||||
slope += Math.abs(extent.getNearestSurfaceTerrainBlock(
|
||||
x,
|
||||
z + distance,
|
||||
y,
|
||||
minY,
|
||||
maxY
|
||||
) - extent.getNearestSurfaceTerrainBlock(x, z - distance, y, minY, maxY)) * 7;
|
||||
slope += Math.abs(extent.getNearestSurfaceTerrainBlock(
|
||||
x + distance,
|
||||
z + distance,
|
||||
y,
|
||||
minY,
|
||||
maxY
|
||||
) - extent.getNearestSurfaceTerrainBlock(x - distance, z - distance, y, minY, maxY)) * 5;
|
||||
slope += Math.abs(extent.getNearestSurfaceTerrainBlock(
|
||||
x - distance,
|
||||
z + distance,
|
||||
y,
|
||||
minY,
|
||||
maxY
|
||||
) - extent.getNearestSurfaceTerrainBlock(x + distance, z - distance, y, minY, maxY)) * 5;
|
||||
int slope = Math.abs(extent.getNearestSurfaceTerrainBlock(x + distance, z, y, minY, maxY) -
|
||||
extent.getNearestSurfaceTerrainBlock(x - distance, z, y, minY, maxY)) * 7;
|
||||
slope += Math.abs(extent.getNearestSurfaceTerrainBlock(x, z + distance, y, minY, maxY) -
|
||||
extent.getNearestSurfaceTerrainBlock(x, z - distance, y, minY, maxY)) * 7;
|
||||
slope += Math.abs(extent.getNearestSurfaceTerrainBlock(x + distance, z + distance, y, minY, maxY) -
|
||||
extent.getNearestSurfaceTerrainBlock(x - distance, z - distance, y, minY, maxY)) * 5;
|
||||
slope += Math.abs(extent.getNearestSurfaceTerrainBlock(x - distance, z + distance, y, minY, maxY) -
|
||||
extent.getNearestSurfaceTerrainBlock(x + distance, z - distance, y, minY, maxY)) * 5;
|
||||
return slope;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren