diff --git a/src/main/java/com/volmit/iris/noise/CNG.java b/src/main/java/com/volmit/iris/noise/CNG.java index 109e4b4f6..cd607a0f4 100644 --- a/src/main/java/com/volmit/iris/noise/CNG.java +++ b/src/main/java/com/volmit/iris/noise/CNG.java @@ -340,7 +340,7 @@ public class CNG double y = dim.length > 1 ? dim[1] - f : 0D; double z = dim.length > 2 ? dim[2] - f : 0D; double n = generator.noise(x * scale, y * scale, z * scale) * opacity; - n = power != 1D ? Math.pow(n, power) : n; + n = power != 1D ? (n < 0 ? -Math.pow(Math.abs(n), power) : Math.pow(n, power)) : n; double m = 1; hits += oct; if(children == null) diff --git a/src/main/java/com/volmit/iris/object/IrisObject.java b/src/main/java/com/volmit/iris/object/IrisObject.java index e9d271084..3dc274bf3 100644 --- a/src/main/java/com/volmit/iris/object/IrisObject.java +++ b/src/main/java/com/volmit/iris/object/IrisObject.java @@ -405,7 +405,10 @@ public class IrisObject extends IrisRegistrant listener.accept(new BlockPosition(xx, yy, zz)); } - placer.set(xx, yy, zz, data); + if(!data.getMaterial().equals(Material.AIR)) + { + placer.set(xx, yy, zz, data); + } if(stilting) { @@ -445,7 +448,10 @@ public class IrisObject extends IrisRegistrant { for(int j = yf; j > yg - config.getOverStilt(); j--) { - placer.set(xf, j, zf, d); + if(!d.getMaterial().equals(Material.AIR)) + { + placer.set(xf, j, zf, d); + } } } }