1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2025-07-12 13:20:28 +02:00

add df_primordial_items saplings

This commit is contained in:
tenplus1
2022-07-01 14:36:36 +01:00
parent e163e815d6
commit 4a0eddef02
4 changed files with 31 additions and 6 deletions

View File

@ -493,11 +493,9 @@ function bonemeal:on_use(pos, strength, node)
light_ok = nil
end
-- check for tree growth if pointing at sapling
if (minetest.get_item_group(node.name, "sapling") > 0
or node.name == "default:large_cactus_seedling")
and random(5 - strength) == 1 then
check_sapling(pos, node.name, light_ok)
-- check for sapling growth
if random(5 - strength) == 1
and check_sapling(pos, node.name, light_ok) then
return true
end