Small fix

This commit is contained in:
paulevsGitch 2021-03-17 22:47:08 +03:00
parent 08afd4fd97
commit d90e352312

View file

@ -58,7 +58,7 @@ public class IslandLayer {
double posX = (px + RANDOM.nextFloat()) * options.distance;
double posY = MHelper.randRange(options.minY, options.maxY, RANDOM);
double posZ = (pz + RANDOM.nextFloat()) * options.distance;
if (density.eval(posX * 0.01, posZ * 0.01) > 0) {
if (density.eval(posX * 0.01, posZ * 0.01) > options.coverage) {
positions.add(new BlockPos(posX, posY, posZ));
}
}