mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 13:39:02 -06:00
Cambridge RS fix lock in midair
This commit is contained in:
parent
2990844c52
commit
bcb44725bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user