From: Vanessa Ezekowitz Date: Sun, 20 Jan 2013 19:15:33 +0000 (-0500) Subject: Added tweak to make sure planted saplings only grow on the same surfaces as X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=2fff77f195616759ada7174cfcc19f31b783ba25;p=zefram%2Fminetest%2Fmoretrees.git Added tweak to make sure planted saplings only grow on the same surfaces as they would normally spawn on. --- diff --git a/init.lua b/init.lua index b7af99b..c03f3d2 100644 --- 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,