From 438a1adb3256a49d324536ff704bcf8ea2776681 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Fri, 4 Nov 2022 09:28:33 -0700 Subject: [PATCH] limit bush duping (#33) only allow a chance of getting a 2nd bush from bushes with fruit, to prevent instant bush duping. --- bushes_classic/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bushes_classic/nodes.lua b/bushes_classic/nodes.lua index cf94d99..240c8a8 100644 --- a/bushes_classic/nodes.lua +++ b/bushes_classic/nodes.lua @@ -63,7 +63,7 @@ plantlife_bushes.after_dig_node = function(pos, oldnode, oldmetadata, digger) -- with a chance of 1/3, return 2 bushes local amount - if math.random(1,3) == 1 then + if can_harvest and math.random(1,3) == 1 then amount = "2" else amount = "1"