mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
Update ShipCustomAttach.cs
check for grounded
This commit is contained in:
parent
c571d3eba7
commit
b4085d5346
@ -39,9 +39,17 @@ namespace QSB.ShipSync
|
||||
}
|
||||
|
||||
var attachedToUs = _playerAttachPoint.enabled;
|
||||
if (!attachedToUs && PlayerState.IsAttached())
|
||||
if (!attachedToUs)
|
||||
{
|
||||
return;
|
||||
if (PlayerState.IsAttached())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (Locator.GetPlayerController() && !Locator.GetPlayerController().IsGrounded())
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_attachPrompt.SetVisibility(!attachedToUs);
|
||||
|
Loading…
Reference in New Issue
Block a user