From ccf3b71c288d3c28d8bf147b133dde15dc796e00 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 8 Apr 2012 00:32:13 +0300 Subject: [PATCH] Generate slightly less shrubs --- mods/default/mapgen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 16150d0f..e9975087 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -195,7 +195,7 @@ minetest.register_on_generated(function(minp, maxp, seed) local x1 = minp.x + math.floor((divx+1)*divlen) local z1 = minp.z + math.floor((divz+1)*divlen) -- Determine cactus amount from perlin noise - local cactus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 5 + 2) + local cactus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 5 + 0) -- Find random positions for cactus based on this random local pr = PseudoRandom(seed+1) for i=0,cactus_amount do -- 2.25.1