mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 21:09:02 -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}
|
offset = {x=tx, y=y}
|
||||||
kicked_piece = new_piece:withOffset(offset)
|
kicked_piece = new_piece:withOffset(offset)
|
||||||
if grid:canPlacePiece(kicked_piece) then
|
if grid:canPlacePiece(kicked_piece) then
|
||||||
self:onPieceRotate(piece, grid)
|
|
||||||
piece:setRelativeRotation(rot_dir)
|
piece:setRelativeRotation(rot_dir)
|
||||||
piece:setOffset(offset)
|
piece:setOffset(offset)
|
||||||
|
self:onPieceRotate(piece, grid, offset.y < 0)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user