mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-11-13 05:50: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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user