Cambridge RS fix lock in midair

pull/13/head
Ishaan Bhardwaj 2020-12-19 14:04:08 -05:00
parent 2990844c52
commit bcb44725bf
1 changed files with 2 additions and 0 deletions

View File

@ -406,6 +406,7 @@ function CRS:onPieceMove(piece, grid)
if piece:isDropBlocked(grid) then
piece.move_counter = piece.move_counter + 1
if piece.move_counter >= 24 then
piece:dropToBottom(grid)
piece.locked = true
end
end
@ -415,6 +416,7 @@ function CRS:onPieceRotate(piece, grid)
if piece:isDropBlocked(grid) then
piece.rotate_counter = piece.rotate_counter + 1
if piece.rotate_counter >= 12 then
piece:dropToBottom(grid)
piece.locked = true
end
end