diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-20 14:15:33 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-01-20 14:15:33 -0500 |
commit | 2fff77f195616759ada7174cfcc19f31b783ba25 (patch) | |
tree | 06fb2a854384e1b607e3a14e853ab18cff4d3d9a | |
parent | 70940adb50323104ad491e240182af1b9da6ca40 (diff) |
Added tweak to make sure planted saplings only grow on the same surfaces as
they would normally spawn on.
-rw-r--r-- | init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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, |