add return growth

This commit is contained in:
tenplus1 2023-09-06 18:14:25 +01:00
parent af48a0e661
commit 0f25366203
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
local on_grow = minetest.registered_nodes[node_name].on_grow
if on_grow then
on_grow(pos, stages.stages_left[growth])
growth = on_grow(pos, stages.stages_left[growth], growth) or growth
else
farming.classic_growth(pos, stages.stages_left[growth])
end