diff --git a/pom.xml b/pom.xml index 4d2be34e2..e5b453d92 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.volmit Iris - 1.1.12 + 1.2 Iris false diff --git a/src/main/java/com/volmit/iris/generator/noise/CellularNoise.java b/src/main/java/com/volmit/iris/generator/noise/CellularNoise.java index 2d447f879..1db837397 100644 --- a/src/main/java/com/volmit/iris/generator/noise/CellularNoise.java +++ b/src/main/java/com/volmit/iris/generator/noise/CellularNoise.java @@ -4,31 +4,31 @@ import com.volmit.iris.util.RNG; public class CellularNoise implements NoiseGenerator { - private final FastNoiseDouble n; + private final FastNoise n; public CellularNoise(long seed) { - this.n = new FastNoiseDouble(new RNG(seed).lmax()); - n.setNoiseType(FastNoiseDouble.NoiseType.Cellular); - n.setCellularReturnType(FastNoiseDouble.CellularReturnType.CellValue); - n.setCellularDistanceFunction(FastNoiseDouble.CellularDistanceFunction.Natural); + this.n = new FastNoise(new RNG(seed).imax()); + n.SetNoiseType(FastNoise.NoiseType.Cellular); + n.SetCellularReturnType(FastNoise.CellularReturnType.CellValue); + n.SetCellularDistanceFunction(FastNoise.CellularDistanceFunction.Natural); } @Override public double noise(double x) { - return (n.GetCellular(x, 0) / 2D) + 0.5D; + return (n.GetCellular((float) x, 0) / 2D) + 0.5D; } @Override public double noise(double x, double z) { - return (n.GetCellular(x, z) / 2D) + 0.5D; + return (n.GetCellular((float)x, (float)z) / 2D) + 0.5D; } @Override public double noise(double x, double y, double z) { - return (n.GetCellular(x, y, z) / 2D) + 0.5D; + return (n.GetCellular((float)x, (float)y, (float)z) / 2D) + 0.5D; } }