mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 16:49:01 -06:00
Fixed EARS locking in midair from beta4
This commit is contained in:
parent
ad047fa68e
commit
209ff25342
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user