projects
/
zefram
/
minetest
/
moretrees.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59bfc5e
)
fixed birch and spruce always appearing above their planted saplings
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Sun, 20 Jan 2013 19:04:10 +0000
(14:04 -0500)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Sun, 20 Jan 2013 19:04:10 +0000
(14:04 -0500)
init.lua
patch
|
blob
|
history
diff --git
a/init.lua
b/init.lua
index c6012fdbc3b33107a5142c8e30c77cc091e3fade..b7af99b4f81a7e52eb7b209cf650d930bd66c73a 100644
(file)
--- 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