From b91b58787619b59accbcf4d45a0889e14664cae6 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 20 Dec 2020 16:32:04 +0100 Subject: [PATCH] Fix Lure --- mods/ITEMS/mcl_fishing/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index 3b7ba37c06..21f5491695 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -248,7 +248,8 @@ local bobber_on_step = function(self, dtime) else if not self._waittime or self._waittime <= 0 then -- wait for random number of ticks. local lure_enchantment = wield and mcl_enchanting.get_enchantment(wield, "lure") or 0 - self._waittime = math.random(5, 30) - lure_enchantment * 5 + local reduced = lure_enchantment * 5 + self._waittime = math.random(math.max(0, 5 - reduced), 30 - reduced) else if self._time < self._waittime then self._time = self._time + dtime