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:
70940ad
)
Added tweak to make sure planted saplings only grow on the same surfaces as
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Sun, 20 Jan 2013 19:15:33 +0000
(14:15 -0500)
committer
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Sun, 20 Jan 2013 19:15:33 +0000
(14:15 -0500)
they would normally spawn on.
init.lua
patch
|
blob
|
history
diff --git
a/init.lua
b/init.lua
index b7af99b4f81a7e52eb7b209cf650d930bd66c73a..c03f3d2993460123030a86c9e95dd6ecbbc67349 100644
(file)
--- a/
init.lua
+++ b/
init.lua
@@
-68,6
+68,12
@@
for i in ipairs(simple_trees) do
local tree_name = trees[i][1]
local tree_model = tree_name.."_model"
dbg(dump(moretrees[tree_model]))
+
+ if tree_model="palm_model" then
+ grow_nodes = {"default:sand"}
+ else
+ grow_nodes = {"default:dirt_with_grass"}
+ end
plantslib:grow_plants(
sapling_interval,
@@
-75,7
+81,7
@@
for i in ipairs(simple_trees) do
"moretrees:"..tree_name.."_sapling",
nil,
nil,
-
nil
,
+
grow_nodes
,
nil,
nil,
nil,