nh makes model ship null

This commit is contained in:
JohnCorby 2022-08-29 21:49:13 -07:00
parent 887da7fc49
commit e1b2670fa2
2 changed files with 8 additions and 1 deletions

View File

@ -37,6 +37,13 @@ internal class ModelShipManager : WorldObjectManager
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
{
// NH can remove this
var modelShip = QSBWorldSync.GetUnityObject<RemoteFlightConsole>()._modelShipBody;
if (!modelShip)
{
return;
}
if (QSBCore.IsHost)
{
Instantiate(QSBNetworkManager.singleton.ModelShipPrefab).SpawnWithServerAuthority();

View File

@ -51,7 +51,7 @@ public static class QSBWorldSync
// let NH do things first :)
// i think NH only takes like 3 frames to do stuff so this should be okay
await UniTask.DelayFrame(10, cancellationToken: _cts.Token);
await UniTask.DelayFrame(1000, cancellationToken: _cts.Token);
GameInit();