mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Tweak chorus flower aging
This commit is contained in:
parent
5e47bce74e
commit
af1465ab0c
@ -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 New Issue
Block a user