Fixed a bug with Mizu RS

This commit is contained in:
Ishaan Bhardwaj 2021-06-16 13:48:56 -04:00
parent c896bdfdd1
commit 21beb5e3c0

View File

@ -140,6 +140,7 @@ function MizuRS:onPieceMove(piece, grid)
end end
function MizuRS:onPieceRotate(piece, grid) function MizuRS:onPieceRotate(piece, grid)
self:checkNewLow(piece)
if piece:isDropBlocked(grid) then if piece:isDropBlocked(grid) then
piece.lock_delay = math.max((piece.lock_delay - piece.ldincrease), 0) piece.lock_delay = math.max((piece.lock_delay - piece.ldincrease), 0)
piece.ldincrease = piece.ldincrease - 1 piece.ldincrease = piece.ldincrease - 1