1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-28 14:26:20 +02:00

Fix growth_check return value/check, add initial on_grow function

This commit is contained in:
tenplus1
2023-09-06 08:11:07 +01:00
parent 27aae682bd
commit 426564232e
2 changed files with 20 additions and 6 deletions

View File

@ -163,10 +163,10 @@ local def = {
if minetest.find_node_near(pos, 1,
{"default:jungletree", "mcl_core:jungletree"}) then
return false -- can grow
return true -- place next growth stage
end
return true -- cannot grow
return false -- condition not met, skip growth stage until next check
end
}