1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-25 02:00:23 +01:00

fixed birch and spruce always appearing above their planted saplings

This commit is contained in:
Vanessa Ezekowitz 2013-01-20 14:04:10 -05:00
parent 59bfc5ea51
commit 70940adb50

View File

@ -94,6 +94,7 @@ plantslib:grow_plants(sapling_interval,sapling_chance,"jungletree:sapling",nil,n
-- Code to spawn a birch tree -- Code to spawn a birch tree
function moretrees:grow_birch(pos) function moretrees:grow_birch(pos)
minetest.env:remove_node(pos)
if math.random(1,2) == 1 then if math.random(1,2) == 1 then
minetest.env:spawn_tree(pos, moretrees.birch_model1) minetest.env:spawn_tree(pos, moretrees.birch_model1)
else else
@ -104,6 +105,7 @@ end
-- Code to spawn a spruce tree -- Code to spawn a spruce tree
function moretrees:grow_spruce(pos) function moretrees:grow_spruce(pos)
minetest.env:remove_node(pos)
if math.random(1,2) == 1 then if math.random(1,2) == 1 then
minetest.env:spawn_tree(pos, moretrees.spruce_model1) minetest.env:spawn_tree(pos, moretrees.spruce_model1)
else else