remove usage of ClientAuthorityOwner

This commit is contained in:
Mister_Nebula 2021-07-13 15:14:56 +01:00
parent 85a3f4770e
commit 5835ce3174
3 changed files with 4 additions and 3 deletions

View File

@ -180,7 +180,7 @@ namespace QSB.Syncs.RigidbodySync
ReferenceTransform = transform;
_intermediaryTransform.SetReferenceTransform(transform);
if (HasAuthority || NetIdentity.ClientAuthorityOwner == null)
if (HasAuthority)
{
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);

View File

@ -187,6 +187,7 @@ namespace QSB.Syncs.TransformSync
public void SetReferenceTransform(Transform transform)
{
DebugLog.DebugWrite($"{_logName} set reference transform {transform.name}", MessageType.Info);
if (ReferenceTransform == transform)
{
return;
@ -208,7 +209,7 @@ namespace QSB.Syncs.TransformSync
ReparentAttachedObject(transform);
}
if (HasAuthority || NetIdentity.ClientAuthorityOwner == null)
if (HasAuthority)
{
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);

View File

@ -134,7 +134,7 @@ namespace QSB.Syncs.TransformSync
ReferenceTransform = transform;
_intermediaryTransform.SetReferenceTransform(transform);
if (HasAuthority || NetIdentity.ClientAuthorityOwner == null)
if (HasAuthority)
{
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);