Fix holes

This commit is contained in:
Daniel Mills 2020-09-02 18:16:12 -04:00
parent a478428721
commit e6b59bc16d
2 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -405,7 +405,10 @@ public class IrisObject extends IrisRegistrant
listener.accept(new BlockPosition(xx, yy, zz));
}
if(!data.getMaterial().equals(Material.AIR))
{
placer.set(xx, yy, zz, data);
}
if(stilting)
{
@ -444,12 +447,15 @@ public class IrisObject extends IrisRegistrant
if(d != null)
{
for(int j = yf; j > yg - config.getOverStilt(); j--)
{
if(!d.getMaterial().equals(Material.AIR))
{
placer.set(xf, j, zf, d);
}
}
}
}
}
if(heightmap != null)
{