mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-28 11:40:16 +01:00
add return growth
This commit is contained in:
parent
af48a0e661
commit
0f25366203
2
init.lua
2
init.lua
@ -426,7 +426,7 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
|
|||||||
local on_grow = minetest.registered_nodes[node_name].on_grow
|
local on_grow = minetest.registered_nodes[node_name].on_grow
|
||||||
|
|
||||||
if on_grow then
|
if on_grow then
|
||||||
on_grow(pos, stages.stages_left[growth])
|
growth = on_grow(pos, stages.stages_left[growth], growth) or growth
|
||||||
else
|
else
|
||||||
farming.classic_growth(pos, stages.stages_left[growth])
|
farming.classic_growth(pos, stages.stages_left[growth])
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user