Fixed an edge case with last commit

This commit is contained in:
Ishaan Bhardwaj 2021-04-08 13:17:34 -04:00
parent 3766149cb7
commit d4b619da89

View File

@ -152,7 +152,7 @@ function Ruleset:movePiece(piece, grid, move, instant)
if not was_drop_blocked and piece:isDropBlocked(grid) then if not was_drop_blocked and piece:isDropBlocked(grid) then
playSE("bottom") playSE("bottom")
end end
if piece.position.y ~= y then if instant and piece.position.y ~= y then
self:onPieceDrop(piece, grid) self:onPieceDrop(piece, grid)
end end
end end