mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
parent
cdc7dd1b93
commit
ea6fbbaecf
@ -1,7 +1,6 @@
|
||||
using QSB.AuthoritySync;
|
||||
using QSB.OrbSync.WorldObjects;
|
||||
using QSB.Syncs.Unsectored.Transforms;
|
||||
using QSB.Utility;
|
||||
using QSB.Utility.LinkedWorldObject;
|
||||
using QSB.WorldSync;
|
||||
using UnityEngine;
|
||||
@ -48,10 +47,7 @@ public class NomaiOrbTransformSync : UnsectoredTransformSync, ILinkedNetworkBeha
|
||||
protected override void Init()
|
||||
{
|
||||
base.Init();
|
||||
DebugLog.DebugWrite($"{this} - attached = {AttachedTransform}");
|
||||
var body = AttachedTransform.GetAttachedOWRigidbody();
|
||||
DebugLog.DebugWrite($"{this} - body = {body}");
|
||||
DebugLog.DebugWrite($"{this} - body.GetOrigParent() = {body.GetOrigParent()}");
|
||||
SetReferenceTransform(body.GetOrigParent());
|
||||
|
||||
body.OnUnsuspendOWRigidbody += OnUnsuspend;
|
||||
@ -65,14 +61,11 @@ public class NomaiOrbTransformSync : UnsectoredTransformSync, ILinkedNetworkBeha
|
||||
|
||||
// this is null sometimes on here, but not on other similar transforms syncs (like anglers)
|
||||
// idk why, but whatever
|
||||
DebugLog.DebugWrite($"{this} - attached = {AttachedTransform}");
|
||||
if (AttachedTransform)
|
||||
{
|
||||
var body = AttachedTransform.GetAttachedOWRigidbody();
|
||||
DebugLog.DebugWrite($"{this} - body = {body}");
|
||||
if (body)
|
||||
{
|
||||
DebugLog.DebugWrite($"{this} - body.GetOrigParent() = {body.GetOrigParent()}");
|
||||
body.OnUnsuspendOWRigidbody -= OnUnsuspend;
|
||||
body.OnSuspendOWRigidbody -= OnSuspend;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user