mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
add null check to SetCurrentFlyer
This commit is contained in:
parent
b6894e5b36
commit
5402bfa3e2
@ -57,7 +57,7 @@ internal class FlyShipMessage : QSBMessage<bool>
|
||||
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
ShipTransformSync.LocalInstance.netIdentity.SetOwner(isFlying
|
||||
ShipTransformSync.LocalInstance?.netIdentity.SetOwner(isFlying
|
||||
? id
|
||||
: QSBPlayerManager.LocalPlayerId);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user