From 62684efaf932dc956014652967dd7f8ebdba0f36 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 3 Jan 2025 15:28:40 -0800 Subject: [PATCH] fix: immediate should not run if no time passed --- src/solvers/immediate.luau | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/solvers/immediate.luau b/src/solvers/immediate.luau index 9b1967f..ce1e4e7 100644 --- a/src/solvers/immediate.luau +++ b/src/solvers/immediate.luau @@ -4,15 +4,17 @@ local intermediate = require(script.Parent.Parent.utils.intermediate) local function immediate(motionGoal: types.MotionGoal): types.MotionSolver local goals = intermediate.to(motionGoal) - return function(key, state) + return function(key, state, deltaTime) local goal = intermediate.index(goals, key) if not goal then return false end - state.complete = true - state.value = goal + if deltaTime > 0 then + state.value = goal + state.complete = true + end end end