mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 18:39:01 -06:00
KRS hotfix
This commit is contained in:
parent
3fea4c77e5
commit
faf022b7d4
@ -153,7 +153,7 @@ function KRS:attemptWallkicks(piece, new_piece, rot_dir, grid, new_inputs)
|
|||||||
piece:setRelativeRotation(rot_dir)
|
piece:setRelativeRotation(rot_dir)
|
||||||
piece:setOffset({x=priority, y=0})
|
piece:setOffset({x=priority, y=0})
|
||||||
self:onPieceRotate(piece)
|
self:onPieceRotate(piece)
|
||||||
piece.das_kicked = true
|
piece.das_kicked = priority ~= 0
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ function KRS:attemptWallkicks(piece, new_piece, rot_dir, grid, new_inputs)
|
|||||||
piece:setRelativeRotation(rot_dir)
|
piece:setRelativeRotation(rot_dir)
|
||||||
piece:setOffset({x=offset[1]+priority, y=offset[2]})
|
piece:setOffset({x=offset[1]+priority, y=offset[2]})
|
||||||
self:onPieceRotate(piece)
|
self:onPieceRotate(piece)
|
||||||
piece.das_kicked = true
|
piece.das_kicked = priority ~= 0
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user