Farming: Check growth later if water was missing

This commit is contained in:
Wuzzy 2019-09-05 23:59:14 +02:00
parent 3a57a08e4e
commit 60c16f6872
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ function farming.grow_plant(pos, name)
if plant.grows_near and
minetest.find_node_near(pos, plant.growing_distance, plant.grows_near) == nil then
minetest.get_node_timer(pos):start(
math.random(plant.grow_time / 16, plant.grow_time / 4))
return
end