mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-03 17:53:57 +00:00
Prevent NRE when buckle/unbuckling
This commit is contained in:
parent
2d7821585c
commit
7f2d5e3323
@ -39,12 +39,12 @@ internal class FlyShipMessage : QSBMessage<bool>
|
||||
var shipCockpitController = ShipManager.Instance.CockpitController;
|
||||
if (Data)
|
||||
{
|
||||
QSBPlayerManager.GetPlayer(From).AudioController.PlayOneShot(AudioType.ShipCockpitBuckleUp);
|
||||
QSBPlayerManager.GetPlayer(From)?.AudioController?.PlayOneShot(AudioType.ShipCockpitBuckleUp);
|
||||
shipCockpitController._interactVolume.DisableInteraction();
|
||||
}
|
||||
else
|
||||
{
|
||||
QSBPlayerManager.GetPlayer(From).AudioController.PlayOneShot(AudioType.ShipCockpitUnbuckle);
|
||||
QSBPlayerManager.GetPlayer(From)?.AudioController?.PlayOneShot(AudioType.ShipCockpitUnbuckle);
|
||||
shipCockpitController._interactVolume.EnableInteraction();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user