summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-20 14:04:10 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-20 14:04:10 -0500
commit70940adb50323104ad491e240182af1b9da6ca40 (patch)
tree17b0d11b6525237475b7989b18d67d76b8fa114f
parent59bfc5ea5151c988a021d7c073340cf1ea1092ef (diff)
fixed birch and spruce always appearing above their planted saplings
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index c6012fd..b7af99b 100644
--- a/init.lua
+++ b/init.lua
@@ -94,6 +94,7 @@ plantslib:grow_plants(sapling_interval,sapling_chance,"jungletree:sapling",nil,n
-- Code to spawn a birch tree
function moretrees:grow_birch(pos)
+ minetest.env:remove_node(pos)
if math.random(1,2) == 1 then
minetest.env:spawn_tree(pos, moretrees.birch_model1)
else
@@ -104,6 +105,7 @@ end
-- Code to spawn a spruce tree
function moretrees:grow_spruce(pos)
+ minetest.env:remove_node(pos)
if math.random(1,2) == 1 then
minetest.env:spawn_tree(pos, moretrees.spruce_model1)
else