mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +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;
|
ReferenceTransform = transform;
|
||||||
_intermediaryTransform.SetReferenceTransform(transform);
|
_intermediaryTransform.SetReferenceTransform(transform);
|
||||||
|
|
||||||
if (HasAuthority || NetIdentity.ClientAuthorityOwner == null)
|
if (HasAuthority)
|
||||||
{
|
{
|
||||||
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
|
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
|
||||||
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);
|
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);
|
||||||
|
@ -187,6 +187,7 @@ namespace QSB.Syncs.TransformSync
|
|||||||
|
|
||||||
public void SetReferenceTransform(Transform transform)
|
public void SetReferenceTransform(Transform transform)
|
||||||
{
|
{
|
||||||
|
DebugLog.DebugWrite($"{_logName} set reference transform {transform.name}", MessageType.Info);
|
||||||
if (ReferenceTransform == transform)
|
if (ReferenceTransform == transform)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -208,7 +209,7 @@ namespace QSB.Syncs.TransformSync
|
|||||||
ReparentAttachedObject(transform);
|
ReparentAttachedObject(transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasAuthority || NetIdentity.ClientAuthorityOwner == null)
|
if (HasAuthority)
|
||||||
{
|
{
|
||||||
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
|
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
|
||||||
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);
|
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);
|
||||||
|
@ -134,7 +134,7 @@ namespace QSB.Syncs.TransformSync
|
|||||||
ReferenceTransform = transform;
|
ReferenceTransform = transform;
|
||||||
_intermediaryTransform.SetReferenceTransform(transform);
|
_intermediaryTransform.SetReferenceTransform(transform);
|
||||||
|
|
||||||
if (HasAuthority || NetIdentity.ClientAuthorityOwner == null)
|
if (HasAuthority)
|
||||||
{
|
{
|
||||||
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
|
_intermediaryTransform.EncodePosition(AttachedObject.transform.position);
|
||||||
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);
|
_intermediaryTransform.EncodeRotation(AttachedObject.transform.rotation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user