Update ShipCustomAttach.cs

check for grounded
This commit is contained in:
JohnCorby 2022-02-03 17:21:40 -08:00
parent c571d3eba7
commit b4085d5346

View File

@ -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);