From 867362880fb6f871fc743a5303170f0d6f5f5b29 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Mon, 16 Sep 2024 09:46:32 +0200 Subject: [PATCH] allow disabling "Hunting Rounds Limit" If "Hunting Rounds Limit" is set to 0, disable it (=unlimited hunting rounds) --- cavebot/supply_check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cavebot/supply_check.lua b/cavebot/supply_check.lua index c694bde..882564d 100644 --- a/cavebot/supply_check.lua +++ b/cavebot/supply_check.lua @@ -90,7 +90,7 @@ CaveBot.Extensions.SupplyCheck.setup = function() supplyRetries = 0 missedChecks = 0 return false - elseif supplyRetries > (storage.extras.huntRoutes or 50) then + elseif (storage.extras.huntRoutes or 0) ~= 0 and supplyRetries > (storage.extras.huntRoutes or 50) then print("CaveBot[SupplyCheck]: Round limit reached, going back on refill. Last round took: " .. round) setCaveBotData() return false