1
0
mirror of https://github.com/misternebula/quantum-space-buddies.git synced 2025-02-14 15:40:20 +00:00

WEE IS SHORTER

This commit is contained in:
JohnCorby 2022-08-29 22:34:10 -07:00
parent 965c90abb2
commit 9f9b61ebf6
2 changed files with 4 additions and 2 deletions
QSB
Syncs/Occasional
WorldSync

@ -19,6 +19,8 @@ internal class OccasionalManager : WorldObjectManager
{
var gdBody = Locator._giantsDeep.GetOWRigidbody();
var cannon = Locator._orbitalProbeCannon.GetRequiredComponent<OrbitalProbeLaunchController>();
if (!cannon) DebugLog.DebugWrite(" CANNON IS NULL!", MessageType.Error);
if (!cannon.GetAttachedOWRigidbody()) DebugLog.DebugWrite(" CANNON BODY IS NULL!", MessageType.Error);
SpawnOccasional(cannon.GetAttachedOWRigidbody(), gdBody);
foreach (var proxy in cannon._realDebrisSectorProxies)

@ -50,8 +50,8 @@ public static class QSBWorldSync
}
// let NH do things first :)
// yes it has to be this long for it to always work. dw things still work no matter the delay
await UniTask.DelayFrame(100, cancellationToken: _cts.Token);
// i think NH only takes like 3 frames to do stuff so this should be okay
await UniTask.DelayFrame(10, cancellationToken: _cts.Token);
GameInit();