From 8964400e19df39d8f49350cf79979b105cb3680f Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 21 Mar 2022 16:37:08 -0700 Subject: [PATCH] make CreateFakeSectors not async --- QSB/SectorSync/QSBSectorManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QSB/SectorSync/QSBSectorManager.cs b/QSB/SectorSync/QSBSectorManager.cs index 9d51318e..2a573f39 100644 --- a/QSB/SectorSync/QSBSectorManager.cs +++ b/QSB/SectorSync/QSBSectorManager.cs @@ -73,7 +73,7 @@ public class QSBSectorManager : WorldObjectManager public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct) { DebugLog.DebugWrite("Building sectors...", MessageType.Info); - await this.Try("creating fake sectors", () => CreateFakeSectors(ct)); + this.Try("creating fake sectors", CreateFakeSectors); QSBWorldSync.Init(); _isReady = QSBWorldSync.GetWorldObjects().Any(); @@ -82,7 +82,7 @@ public class QSBSectorManager : WorldObjectManager public override void UnbuildWorldObjects() => _isReady = false; - private static async UniTask CreateFakeSectors(CancellationToken ct) + private static void CreateFakeSectors() { if (QSBSceneManager.CurrentScene != OWScene.SolarSystem) {