From 94e0e2685d095abbd4cda1e734e65887cfc8f12c Mon Sep 17 00:00:00 2001 From: annabunches Date: Thu, 28 Sep 2023 17:10:16 -0400 Subject: [PATCH] Fix bug oops. --- src/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index 77bf8c8..1e1c2ad 100644 --- a/src/main.lua +++ b/src/main.lua @@ -136,7 +136,8 @@ end function movePaddle(ticks) if ticks == 0 then return end - paddle:moveWithCollisions(paddle.x, paddle.y + ticks*-5) + + local collisions = select(3, paddle:moveWithCollisions(paddle.x, paddle.y + ticks*-5)) for i = 1, #collisions, 1 do local obj = collisions[i].other if obj:isa(Brick) then