From 8b1aaf1f8737f3bf4287d55153db34d3dbf0cf7a Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Sat, 14 Feb 2026 21:29:15 -0500 Subject: [PATCH] fix moving condition with no monkeyspeed available --- Conditionals.lua | 4 ++-- Core.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Conditionals.lua b/Conditionals.lua index 7d72baa..fb9a868 100644 --- a/Conditionals.lua +++ b/Conditionals.lua @@ -2590,8 +2590,8 @@ function CleveRoids.IsPlayerMoving() -- prevIdx and currIdx walk from oldest to newest local currOffset = samplesAvail - i -- e.g., 3,2,1,0 for count=4 local prevOffset = samplesAvail - i + 1 -- e.g., 4,3,2,1 - local currIdx = math.mod((headIdx - currOffset - 1), 4) + 1 - local prevIdx = math.mod((headIdx - prevOffset - 1), 4) + 1 + local currIdx = math.mod((headIdx - currOffset - 1 + 4), 4) + 1 + local prevIdx = math.mod((headIdx - prevOffset - 1 + 4), 4) + 1 local prev = history[prevIdx] local curr = history[currIdx] local dx = curr.x - prev.x diff --git a/Core.lua b/Core.lua index 34b4118..7659e1d 100644 --- a/Core.lua +++ b/Core.lua @@ -3862,7 +3862,7 @@ function CleveRoids.OnUpdate(self) -- Maintain legacy vars for any code that uses them directly if CleveRoids._posHistoryCount >= 2 then - local prevIdx = math.mod((idx - 2), 4) + 1 + local prevIdx = math.mod((idx - 2 + 4), 4) + 1 CleveRoids._previousPlayerPos = history[prevIdx] CleveRoids._currentPlayerPos = entry end