1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-27 03:00:20 +01:00

add return growth

This commit is contained in:
tenplus1 2023-09-06 18:14:25 +01:00
parent af48a0e661
commit 0f25366203

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