mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
QSBSectorManager: update reference sector only when attached object is active
This commit is contained in:
parent
005f6886ab
commit
4ce58220b1
@ -46,7 +46,8 @@ public class QSBSectorManager : WorldObjectManager
|
||||
foreach (var sync in SectoredSyncs)
|
||||
{
|
||||
if (sync.hasAuthority
|
||||
&& sync.IsValid)
|
||||
&& sync.IsValid
|
||||
&& sync.AttachedTransform.gameObject.activeInHierarchy)
|
||||
{
|
||||
UpdateReferenceSector(sync);
|
||||
}
|
||||
|
@ -96,11 +96,6 @@ public abstract class SyncBase : QSBNetworkTransform
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ReferenceTransform == Locator.GetRootTransform())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -237,11 +232,6 @@ public abstract class SyncBase : QSBNetworkTransform
|
||||
return;
|
||||
}
|
||||
|
||||
if (ReferenceTransform && ReferenceTransform.position == Vector3.zero)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - {this}'s ReferenceTransform is at (0,0,0). ReferenceTransform:{ReferenceTransform.name}", MessageType.Warning);
|
||||
}
|
||||
|
||||
if (!hasAuthority && UseInterpolation)
|
||||
{
|
||||
Interpolate();
|
||||
|
Loading…
Reference in New Issue
Block a user