add null checks to FlyShipMessage.OnRecieveRemote

This commit is contained in:
_nebula 2023-07-04 20:59:21 +01:00
parent 88d3babe52
commit fe97e0f569

View File

@ -40,12 +40,12 @@ internal class FlyShipMessage : QSBMessage<bool>
if (Data)
{
QSBPlayerManager.GetPlayer(From)?.AudioController?.PlayOneShot(AudioType.ShipCockpitBuckleUp);
shipCockpitController._interactVolume.DisableInteraction();
shipCockpitController._interactVolume?.DisableInteraction();
}
else
{
QSBPlayerManager.GetPlayer(From)?.AudioController?.PlayOneShot(AudioType.ShipCockpitUnbuckle);
shipCockpitController._interactVolume.EnableInteraction();
shipCockpitController._interactVolume?.EnableInteraction();
}
}