fix grass in diamond_square

This commit is contained in:
Romain Beaumont 2015-10-25 23:33:12 +01:00
parent 2a3b8a157b
commit 939a404050

View file

@ -123,7 +123,7 @@ function generation({seed,worldHeight=80,waterline=20}={}) {
else if (y < level) block = 1; // Set stone inbetween
else if (y == level) block = surfaceblock; // Set surface sand/grass
else if (y <= waterline) block = 9; // Set the water
else if (y == level+1 && level >= waterline && seedRand(1) < 0.1) { // 1/10 chance of grass
else if (y == level+1 && level >= waterline && seedRand(10) ==0) { // 1/10 chance of grass
block = 31;
data = 1;
}