mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
dont move player if attached
This commit is contained in:
parent
0e2c40644f
commit
95361ade69
@ -11,6 +11,7 @@ namespace QSB.EchoesOfTheEye.RaftSync.TransformSync;
|
|||||||
public class RaftTransformSync : UnsectoredRigidbodySync, ILinkedNetworkBehaviour
|
public class RaftTransformSync : UnsectoredRigidbodySync, ILinkedNetworkBehaviour
|
||||||
{
|
{
|
||||||
private bool ShouldMovePlayer =>
|
private bool ShouldMovePlayer =>
|
||||||
|
!PlayerState.IsAttached() &&
|
||||||
(
|
(
|
||||||
Locator.GetPlayerController().GetGroundBody() == null ||
|
Locator.GetPlayerController().GetGroundBody() == null ||
|
||||||
Locator.GetPlayerController().GetGroundBody() == AttachedRigidbody
|
Locator.GetPlayerController().GetGroundBody() == AttachedRigidbody
|
||||||
|
@ -124,6 +124,7 @@ public class ShipTransformSync : SectoredRigidbodySync
|
|||||||
|
|
||||||
|
|
||||||
private bool ShouldMovePlayer =>
|
private bool ShouldMovePlayer =>
|
||||||
|
!PlayerState.IsAttached() &&
|
||||||
(
|
(
|
||||||
Locator.GetPlayerController().GetGroundBody() == null ||
|
Locator.GetPlayerController().GetGroundBody() == null ||
|
||||||
Locator.GetPlayerController().GetGroundBody() == AttachedRigidbody
|
Locator.GetPlayerController().GetGroundBody() == AttachedRigidbody
|
||||||
|
Loading…
Reference in New Issue
Block a user