Added tweak to make sure planted saplings only grow on the same surfaces as
they would normally spawn on.
This commit is contained in:
parent
70940adb50
commit
2fff77f195
8
init.lua
8
init.lua
@ -69,13 +69,19 @@ for i in ipairs(simple_trees) do
|
||||
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,
|
||||
sapling_chance,
|
||||
"moretrees:"..tree_name.."_sapling",
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
grow_nodes,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
|
Loading…
Reference in New Issue
Block a user