From 9c335b0029fca01c505c8f9f2347c7ed3574f3fc Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 6 Apr 2020 09:44:51 +0100 Subject: [PATCH] fix strength bug --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index e05b1ac..5784fd0 100644 --- a/init.lua +++ b/init.lua @@ -460,8 +460,8 @@ function bonemeal:on_use(pos, strength, node) end -- check for tree growth if pointing at sapling --- if minetest.get_item_group(node.name, "sapling") > 0 - if random(5 - strength) == 1 then + if minetest.get_item_group(node.name, "sapling") > 0 + and random(5 - strength) == 1 then check_sapling(pos, node.name) return end