Revert "slap logs on the stupid orbs"

This reverts commit cdc7dd1b93.
This commit is contained in:
JohnCorby 2022-05-06 21:24:13 -07:00
parent cdc7dd1b93
commit ea6fbbaecf

View File

@ -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;
}