From a57c4265ae06e07411f31cb56b6f5b2c525ca067 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 29 Aug 2022 21:31:13 -0700 Subject: [PATCH] fake sector check --- QSB/SectorSync/QSBSectorManager.cs | 12 ++++++++---- QSB/WorldSync/QSBWorldSync.cs | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/QSB/SectorSync/QSBSectorManager.cs b/QSB/SectorSync/QSBSectorManager.cs index 3d345bfd..389060ff 100644 --- a/QSB/SectorSync/QSBSectorManager.cs +++ b/QSB/SectorSync/QSBSectorManager.cs @@ -91,11 +91,15 @@ public class QSBSectorManager : WorldObjectManager // time loop spinning ring { + // NH can remove this var TimeLoopRing_Body = GameObject.Find("TimeLoopRing_Body"); - var Sector_TimeLoopInterior = GameObject.Find("Sector_TimeLoopInterior").GetComponent(); - // use the same trigger as the parent sector - FakeSector.Create(TimeLoopRing_Body, Sector_TimeLoopInterior, - x => x._triggerRoot = Sector_TimeLoopInterior._triggerRoot); + if (TimeLoopRing_Body) + { + var Sector_TimeLoopInterior = GameObject.Find("Sector_TimeLoopInterior").GetComponent(); + // use the same trigger as the parent sector + FakeSector.Create(TimeLoopRing_Body, Sector_TimeLoopInterior, + x => x._triggerRoot = Sector_TimeLoopInterior._triggerRoot); + } } // TH elevators diff --git a/QSB/WorldSync/QSBWorldSync.cs b/QSB/WorldSync/QSBWorldSync.cs index f3604883..ce53ade5 100644 --- a/QSB/WorldSync/QSBWorldSync.cs +++ b/QSB/WorldSync/QSBWorldSync.cs @@ -49,8 +49,8 @@ public static class QSBWorldSync await UniTask.WaitUntil(() => PlayerTransformSync.LocalInstance, cancellationToken: _cts.Token); } - // let nh do things first :) - // makin it nice and long to be safe + // let NH do things first :) + // makin it nice and long to be safe. dw things still work no matter the delay await UniTask.DelayFrame(100, cancellationToken: _cts.Token); GameInit();