From b4085d5346d9bc833afcc8e89af1c62ec2bfbee7 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Thu, 3 Feb 2022 17:21:40 -0800 Subject: [PATCH] Update ShipCustomAttach.cs check for grounded --- QSB/ShipSync/ShipCustomAttach.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/QSB/ShipSync/ShipCustomAttach.cs b/QSB/ShipSync/ShipCustomAttach.cs index 85a33491..66cccd82 100644 --- a/QSB/ShipSync/ShipCustomAttach.cs +++ b/QSB/ShipSync/ShipCustomAttach.cs @@ -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);