CRS no longer locks in midair

pull/17/head
Ishaan Bhardwaj 2021-03-11 15:29:24 -05:00
parent ab445ff699
commit b91ffc913b
1 changed files with 1 additions and 1 deletions

View File

@ -384,9 +384,9 @@ function CRS:attemptWallkicks(piece, new_piece, rot_dir, grid)
for idx, offset in pairs(kicks) do
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)
return
end
end