add null check to SetCurrentFlyer

This commit is contained in:
_nebula 2023-07-04 20:39:08 +01:00
parent b6894e5b36
commit 5402bfa3e2

View File

@ -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);
}