Fix snow smooth
This commit is contained in:
parent
73ab11a842
commit
59c2439c85
@ -28,7 +28,7 @@ ext {
|
|||||||
date = git.head().date.format("yy.MM.dd")
|
date = git.head().date.format("yy.MM.dd")
|
||||||
revision = "-${git.head().abbreviatedId}"
|
revision = "-${git.head().abbreviatedId}"
|
||||||
parents = git.head().parentIds;
|
parents = git.head().parentIds;
|
||||||
index = -90; // Offset to mach CI
|
index = -91; // Offset to mach CI
|
||||||
int major, minor, patch;
|
int major, minor, patch;
|
||||||
major = minor = patch = 0;
|
major = minor = patch = 0;
|
||||||
for (;parents != null && !parents.isEmpty();index++) {
|
for (;parents != null && !parents.isEmpty();index++) {
|
||||||
|
@ -79,7 +79,7 @@ public class HeightMap {
|
|||||||
int x = pos.getBlockX();
|
int x = pos.getBlockX();
|
||||||
int z = pos.getBlockZ();
|
int z = pos.getBlockZ();
|
||||||
y = session.getNearestSurfaceLayer(x, z, y, 0, maxY);
|
y = session.getNearestSurfaceLayer(x, z, y, 0, maxY);
|
||||||
data[(z - bz) * width + (x - bx)] = 7 + (y << 3);
|
data[(z - bz) * width + (x - bx)] = y;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Store current heightmap data
|
// Store current heightmap data
|
||||||
|
Loading…
Reference in New Issue
Block a user