1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-28 03:30:22 +01:00

don't register grow actions for "ongen" saplings

if moretrees is not in spawn-saplings mode.
This commit is contained in:
Vanessa Dannenberg 2018-10-25 11:59:44 -04:00
parent 90a2d33707
commit 109b2009fb

View File

@ -16,6 +16,7 @@ for i in ipairs(moretrees.treelist) do
grow_function = moretrees[tree_model], grow_function = moretrees[tree_model],
}) })
if moretrees.spawn_saplings then
biome_lib:grow_plants({ biome_lib:grow_plants({
grow_delay = 2, grow_delay = 2,
grow_chance = 30, grow_chance = 30,
@ -23,6 +24,7 @@ for i in ipairs(moretrees.treelist) do
grow_nodes = moretrees[tree_biome].surface, grow_nodes = moretrees[tree_biome].surface,
grow_function = moretrees[tree_model], grow_function = moretrees[tree_model],
}) })
end
end end
end end
@ -35,13 +37,6 @@ biome_lib:grow_plants({
grow_function = "moretrees.grow_birch" grow_function = "moretrees.grow_birch"
}) })
biome_lib:grow_plants({
grow_delay = 2,
grow_chance = 30,
grow_plant = "moretrees:birch_sapling_ongen",
grow_nodes = moretrees.birch_biome.surface,
grow_function = "moretrees.grow_birch"
})
biome_lib:grow_plants({ biome_lib:grow_plants({
grow_delay = moretrees.sapling_interval, grow_delay = moretrees.sapling_interval,
@ -51,14 +46,6 @@ biome_lib:grow_plants({
grow_function = "moretrees.grow_spruce" grow_function = "moretrees.grow_spruce"
}) })
biome_lib:grow_plants({
grow_delay = 2,
grow_chance = 30,
grow_plant = "moretrees:spruce_sapling_ongen",
grow_nodes = moretrees.spruce_biome.surface,
grow_function = "moretrees.grow_spruce"
})
biome_lib:grow_plants({ biome_lib:grow_plants({
grow_delay = moretrees.sapling_interval, grow_delay = moretrees.sapling_interval,
grow_chance = moretrees.sapling_chance, grow_chance = moretrees.sapling_chance,
@ -67,14 +54,6 @@ biome_lib:grow_plants({
grow_function = "moretrees.grow_fir" grow_function = "moretrees.grow_fir"
}) })
biome_lib:grow_plants({
grow_delay = 2,
grow_chance = 30,
grow_plant = "moretrees:fir_sapling_ongen",
grow_nodes = moretrees.fir_biome.surface,
grow_function = "moretrees.grow_fir"
})
biome_lib:grow_plants({ biome_lib:grow_plants({
grow_delay = moretrees.sapling_interval, grow_delay = moretrees.sapling_interval,
grow_chance = moretrees.sapling_chance, grow_chance = moretrees.sapling_chance,
@ -83,6 +62,7 @@ biome_lib:grow_plants({
grow_function = "moretrees.grow_jungletree" grow_function = "moretrees.grow_jungletree"
}) })
if moretrees.spawn_saplings then
biome_lib:grow_plants({ biome_lib:grow_plants({
grow_delay = 2, grow_delay = 2,
grow_chance = 30, grow_chance = 30,
@ -91,3 +71,28 @@ biome_lib:grow_plants({
grow_function = "moretrees.grow_jungletree" grow_function = "moretrees.grow_jungletree"
}) })
biome_lib:grow_plants({
grow_delay = 2,
grow_chance = 30,
grow_plant = "moretrees:fir_sapling_ongen",
grow_nodes = moretrees.fir_biome.surface,
grow_function = "moretrees.grow_fir"
})
biome_lib:grow_plants({
grow_delay = 2,
grow_chance = 30,
grow_plant = "moretrees:spruce_sapling_ongen",
grow_nodes = moretrees.spruce_biome.surface,
grow_function = "moretrees.grow_spruce"
})
biome_lib:grow_plants({
grow_delay = 2,
grow_chance = 30,
grow_plant = "moretrees:birch_sapling_ongen",
grow_nodes = moretrees.birch_biome.surface,
grow_function = "moretrees.grow_birch"
})
end