diff --git a/minetestforfun_game/mods/default/mapgen.lua b/minetestforfun_game/mods/default/mapgen.lua index 723d2727..435c6b2f 100755 --- a/minetestforfun_game/mods/default/mapgen.lua +++ b/minetestforfun_game/mods/default/mapgen.lua @@ -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 diff --git a/minetestforfun_game/mods/default/trees.lua b/minetestforfun_game/mods/default/trees.lua index 282e9aa8..3dd93604 100755 --- a/minetestforfun_game/mods/default/trees.lua +++ b/minetestforfun_game/mods/default/trees.lua @@ -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