From 939a4040500339e8efb12457340d838b8d3e2ae0 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sun, 25 Oct 2015 23:33:12 +0100 Subject: [PATCH] fix grass in diamond_square --- src/lib/worldGenerations/diamond_square.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/worldGenerations/diamond_square.js b/src/lib/worldGenerations/diamond_square.js index 3b42645..c6dc48e 100644 --- a/src/lib/worldGenerations/diamond_square.js +++ b/src/lib/worldGenerations/diamond_square.js @@ -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; }