1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 23:40:31 +01:00

Merge pull request #92

This commit is contained in:
LeMagnesium 2015-06-17 17:34:22 +02:00
commit 9bd3f7d53f
2 changed files with 18 additions and 1 deletions

View File

@ -726,6 +726,23 @@ function default.register_mgv6_decorations()
y_max = 30,
decoration = "default:dry_shrub",
})
-- Cherry tree
minetest.register_decoration({
deco_type = "simple",
place_on = "default:dirt_with_grass",
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.005,
spread = {x=100, y=100, z=100},
seed = 278,
octaves = 2,
persist = 0.7
},
decoration = "default:mg_cherry_sapling",
height = 1,
})
end

View File

@ -366,7 +366,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
local p_pos = area:index(x,y,z)
local content_id = data[p_pos]
if content_id == c_mg_cherry_sapling then
mapgen.grow_tree({x=x, y=y, z=z}, false, "default:cherry_tree", "default:cherry_blossom_leaves")
default.grow_cherry_tree({x=x, y=y, z=z}, false, "default:cherry_tree", "default:cherry_blossom_leaves")
trees_grown = trees_grown + 1
else
-- nope