From 59c2439c85b42a4a2e19143c7f79145e11d4b90c Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 21 Apr 2017 17:05:36 +1000 Subject: [PATCH] Fix snow smooth --- build.gradle | 2 +- .../java/com/sk89q/worldedit/math/convolution/HeightMap.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index c1fffe68..370e89d8 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ ext { date = git.head().date.format("yy.MM.dd") revision = "-${git.head().abbreviatedId}" parents = git.head().parentIds; - index = -90; // Offset to mach CI + index = -91; // Offset to mach CI int major, minor, patch; major = minor = patch = 0; for (;parents != null && !parents.isEmpty();index++) { diff --git a/core/src/main/java/com/sk89q/worldedit/math/convolution/HeightMap.java b/core/src/main/java/com/sk89q/worldedit/math/convolution/HeightMap.java index 815e50f7..188f1494 100644 --- a/core/src/main/java/com/sk89q/worldedit/math/convolution/HeightMap.java +++ b/core/src/main/java/com/sk89q/worldedit/math/convolution/HeightMap.java @@ -79,7 +79,7 @@ public class HeightMap { int x = pos.getBlockX(); int z = pos.getBlockZ(); 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 { // Store current heightmap data