diff --git a/QSB/DeathSync/RespawnOnDeath.cs b/QSB/DeathSync/RespawnOnDeath.cs index 72d5de07..2d0f193f 100644 --- a/QSB/DeathSync/RespawnOnDeath.cs +++ b/QSB/DeathSync/RespawnOnDeath.cs @@ -67,7 +67,7 @@ namespace QSB.DeathSync { return; } - + // Reset ship position. _shipBody.SetVelocity(_shipSpawnPoint.GetPointVelocity()); _shipBody.WarpToPositionRotation(_shipSpawnPoint.transform.position, _shipSpawnPoint.transform.rotation); diff --git a/QSB/SectorSync/QSBSectorManager.cs b/QSB/SectorSync/QSBSectorManager.cs index 5ca1c1e6..3e1e7161 100644 --- a/QSB/SectorSync/QSBSectorManager.cs +++ b/QSB/SectorSync/QSBSectorManager.cs @@ -43,8 +43,8 @@ namespace QSB.SectorSync public QSBSector GetClosestSector(Transform trans) // trans rights \o/ { return QSBWorldSync.GetWorldObjects() - .Where(sector => sector.Sector != null - && !_sectorBlacklist.Contains(sector.Type) + .Where(sector => sector.Sector != null + && !_sectorBlacklist.Contains(sector.Type) && sector.Transform.gameObject.activeInHierarchy) .OrderBy(sector => Vector3.Distance(sector.Position, trans.position)) .First(); diff --git a/QSB/SectorSync/SectorSync.cs b/QSB/SectorSync/SectorSync.cs index f0650b80..bd0ba16a 100644 --- a/QSB/SectorSync/SectorSync.cs +++ b/QSB/SectorSync/SectorSync.cs @@ -10,7 +10,7 @@ namespace QSB.SectorSync private const float CheckInterval = 0.5f; private float _checkTimer = CheckInterval; - private void Update() + public void Update() { if (!QSBSectorManager.Instance.IsReady) { diff --git a/QSB/TransformSync/PlayerTransformSync.cs b/QSB/TransformSync/PlayerTransformSync.cs index 5e7856da..76c2400d 100644 --- a/QSB/TransformSync/PlayerTransformSync.cs +++ b/QSB/TransformSync/PlayerTransformSync.cs @@ -1,7 +1,6 @@ using QSB.Animation; using QSB.Instruments; using QSB.Player; -using QSB.Utility; using UnityEngine; namespace QSB.TransformSync