From d4b619da89785caf617d7c281f3f8552cfe7750d Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 8 Apr 2021 13:17:34 -0400 Subject: [PATCH] Fixed an edge case with last commit --- tetris/rulesets/ruleset.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/rulesets/ruleset.lua b/tetris/rulesets/ruleset.lua index 7e0e3bd..5198833 100644 --- a/tetris/rulesets/ruleset.lua +++ b/tetris/rulesets/ruleset.lua @@ -152,7 +152,7 @@ function Ruleset:movePiece(piece, grid, move, instant) if not was_drop_blocked and piece:isDropBlocked(grid) then playSE("bottom") end - if piece.position.y ~= y then + if instant and piece.position.y ~= y then self:onPieceDrop(piece, grid) end end