projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5296dc1
)
Generate slightly less shrubs
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 7 Apr 2012 21:32:13 +0000
(
00:32
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 7 Apr 2012 21:32:13 +0000
(
00:32
+0300)
mods/default/mapgen.lua
patch
|
blob
|
history
diff --git
a/mods/default/mapgen.lua
b/mods/default/mapgen.lua
index 16150d0f58f3b39cc2ed9284447e8cf73c29c1be..e9975087e45b7f59067ff86da745757138748044 100644
(file)
--- 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