mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-11 10:14:17 +00:00
add null checks to FlyShipMessage.OnRecieveRemote
This commit is contained in:
parent
88d3babe52
commit
fe97e0f569
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user