From 77d24daa634d6816ee184a963daf4d19f1b407f2 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Fri, 9 Jul 2021 11:57:16 +0800 Subject: [PATCH] Revert "fix number of parameters passed to self:move_towards" Apparently the LSP intellisense is wrong on this one, this actually causes an infinite loop --- data/core/view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/view.lua b/data/core/view.lua index 24c84c8d..2fb431d6 100644 --- a/data/core/view.lua +++ b/data/core/view.lua @@ -18,7 +18,7 @@ end function View:move_towards(t, k, dest, rate) if type(t) ~= "table" then - return self:move_towards(t, k, dest, rate) + return self:move_towards(self, t, k, dest, rate) end local val = t[k] if not config.transitions or math.abs(val - dest) < 0.5 then