Fixed certain rulesets locking in midair

This commit is contained in:
Ishaan Bhardwaj
2020-12-18 21:24:10 -05:00
parent 1101aa467d
commit d3b647ca71
5 changed files with 10 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ function SRS:onPieceMove(piece, grid)
if piece:isDropBlocked(grid) then
piece.manipulations = piece.manipulations + 1
if piece.manipulations >= 15 then
piece:dropToBottom(grid)
piece.locked = true
end
end
@@ -98,6 +99,7 @@ function SRS:onPieceRotate(piece, grid)
piece.manipulations = piece.manipulations + 1
if piece:isDropBlocked(grid) then
if piece.manipulations >= 15 then
piece:dropToBottom(grid)
piece.locked = true
end
end