Small fix
This commit is contained in:
parent
08afd4fd97
commit
d90e352312
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public class IslandLayer {
|
||||||
double posX = (px + RANDOM.nextFloat()) * options.distance;
|
double posX = (px + RANDOM.nextFloat()) * options.distance;
|
||||||
double posY = MHelper.randRange(options.minY, options.maxY, RANDOM);
|
double posY = MHelper.randRange(options.minY, options.maxY, RANDOM);
|
||||||
double posZ = (pz + RANDOM.nextFloat()) * options.distance;
|
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));
|
positions.add(new BlockPos(posX, posY, posZ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue