mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-12-22 07:25:40 +01:00
simplify tree growth config a bit
This commit is contained in:
@@ -63,7 +63,9 @@ minetest.register_node("dfcaverns:black_cap_sapling", {
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(dfcaverns.config.black_cap_min_growth_delay,dfcaverns.config.black_cap_max_growth_delay))
|
||||
minetest.get_node_timer(pos):start(math.random(
|
||||
dfcaverns.config.black_cap_delay_multiplier*dfcaverns.config.tree_min_growth_delay,
|
||||
dfcaverns.config.black_cap_delay_multiplier*dfcaverns.config.tree_max_growth_delay))
|
||||
end,
|
||||
|
||||
on_timer = function(pos)
|
||||
|
||||
Reference in New Issue
Block a user