From 511187e2e5cf0168e5755cb0dd220df58bc42b6d Mon Sep 17 00:00:00 2001 From: Emik Date: Wed, 26 Mar 2025 12:17:03 +0100 Subject: [PATCH] Floor ante number to prevent nil return value --- src/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index d72d53e..8f34e80 100644 --- a/src/main.lua +++ b/src/main.lua @@ -310,7 +310,8 @@ function Game:update(dt) orig_update(self, dt) - local blind = get_blind_amount(G.GAME.round_resets.ante) + local ante = G.GAME.round_resets.ante + local blind = get_blind_amount((ante >= 1 and ante <= 8) and math.floor(ante) or ante) G.P_BLINDS["bl_jane_wee"].mult = 22 / blind G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind