Fixed EARS locking in midair from beta4

pull/4/head
Ishaan Bhardwaj 2021-02-17 21:46:01 -05:00
parent ad047fa68e
commit 209ff25342
1 changed files with 1 additions and 1 deletions

View File

@ -24,9 +24,9 @@ function EARS:attemptWallkicks(piece, new_piece, rot_dir, grid)
offset = {x=tx, y=y}
kicked_piece = new_piece:withOffset(offset)
if grid:canPlacePiece(kicked_piece) then
self:onPieceRotate(piece, grid)
piece:setRelativeRotation(rot_dir)
piece:setOffset(offset)
self:onPieceRotate(piece, grid, offset.y < 0)
return
end
end