mirror of
https://notabug.org/TenPlus1/bonemeal.git
synced 2024-08-21 15:14:09 +02:00
fix strength bug
This commit is contained in:
parent
e017406a10
commit
9c335b0029
4
init.lua
4
init.lua
@ -460,8 +460,8 @@ function bonemeal:on_use(pos, strength, node)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- check for tree growth if pointing at sapling
|
-- check for tree growth if pointing at sapling
|
||||||
-- if minetest.get_item_group(node.name, "sapling") > 0
|
if minetest.get_item_group(node.name, "sapling") > 0
|
||||||
if random(5 - strength) == 1 then
|
and random(5 - strength) == 1 then
|
||||||
check_sapling(pos, node.name)
|
check_sapling(pos, node.name)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user