mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 14:31:17 +00:00
fix grass in diamond_square
This commit is contained in:
parent
2a3b8a157b
commit
939a404050
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue