mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix some wrapped comments
This commit is contained in:
parent
7acd006b2b
commit
e33291ef45
@ -64,7 +64,6 @@ public class HeightMap {
|
|||||||
data[z * width + x] = session.getHighestTerrainBlock(x + minX, z + minZ, minY, maxY);
|
data[z * width + x] = session.getHighestTerrainBlock(x + minX, z + minZ, minY, maxY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -118,15 +117,12 @@ public class HeightMap {
|
|||||||
int X = x + originX;
|
int X = x + originX;
|
||||||
int Z = z + originZ;
|
int Z = z + originZ;
|
||||||
|
|
||||||
// We are keeping the topmost blocks so take that in account for
|
// We are keeping the topmost blocks so take that in account for the scale
|
||||||
// the scale
|
|
||||||
double scale = (double) (curHeight - originY) / (double) (newHeight - originY);
|
double scale = (double) (curHeight - originY) / (double) (newHeight - originY);
|
||||||
|
|
||||||
// Depending on growing or shrinking we need to start at the
|
// Depending on growing or shrinking we need to start at the bottom or top
|
||||||
// bottom or top
|
|
||||||
if (newHeight > curHeight) {
|
if (newHeight > curHeight) {
|
||||||
// Set the top block of the column to be the same type (this
|
// Set the top block of the column to be the same type (this might go wrong with rounding)
|
||||||
// might go wrong with rounding)
|
|
||||||
session.setBlock(new Vector(X, newHeight, Z), session.getBlock(new Vector(X, curHeight, Z)));
|
session.setBlock(new Vector(X, newHeight, Z), session.getBlock(new Vector(X, curHeight, Z)));
|
||||||
blocksChanged++;
|
blocksChanged++;
|
||||||
|
|
||||||
@ -144,8 +140,8 @@ public class HeightMap {
|
|||||||
blocksChanged++;
|
blocksChanged++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the top block of the column to be the same type (this
|
// Set the top block of the column to be the same type
|
||||||
// might go wrong with rounding)
|
// (this could otherwise go wrong with rounding)
|
||||||
session.setBlock(new Vector(X, newHeight, Z), session.getBlock(new Vector(X, curHeight, Z)));
|
session.setBlock(new Vector(X, newHeight, Z), session.getBlock(new Vector(X, curHeight, Z)));
|
||||||
blocksChanged++;
|
blocksChanged++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user