mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-18 22:39:33 +01:00
Tweak chorus flower aging
This commit is contained in:
parent
5e47bce74e
commit
af1465ab0c
1 changed files with 4 additions and 4 deletions
|
@ -114,6 +114,7 @@ minetest.register_abm({
|
|||
break
|
||||
end
|
||||
end
|
||||
local grown = false
|
||||
if node_above.name == "air" and air_around then
|
||||
local branching = false
|
||||
local h = 0
|
||||
|
@ -150,7 +151,6 @@ minetest.register_abm({
|
|||
grow_chance = 20
|
||||
end
|
||||
|
||||
local grown = false
|
||||
if grow_chance then
|
||||
local new_flowers = {}
|
||||
local r = math.random(1, 100)
|
||||
|
@ -190,10 +190,10 @@ minetest.register_abm({
|
|||
grown = true
|
||||
end
|
||||
end
|
||||
end
|
||||
if not grown then
|
||||
minetest.set_node(pos, {name = "mcl_end:chorus_flower_dead"})
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue