mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-18 13:23:05 +00:00
remove usage of ClientAuthorityOwner
This commit is contained in:
parent
85a3f4770e
commit
5835ce3174
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user