From 4c5b6c7d9d31786338a79da46938c8d629ec979f Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Thu, 6 Oct 2022 00:39:36 -0700 Subject: [PATCH] remove orb goof cuz thats fixed via the GetAttachedOWRigidbodyPatch --- QSB/OrbSync/TransformSync/NomaiOrbTransformSync.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/QSB/OrbSync/TransformSync/NomaiOrbTransformSync.cs b/QSB/OrbSync/TransformSync/NomaiOrbTransformSync.cs index 7fc2bb43..e3b092fd 100644 --- a/QSB/OrbSync/TransformSync/NomaiOrbTransformSync.cs +++ b/QSB/OrbSync/TransformSync/NomaiOrbTransformSync.cs @@ -59,17 +59,9 @@ public class NomaiOrbTransformSync : UnsectoredTransformSync, ILinkedNetworkBeha { base.Uninit(); - // this is null sometimes on here, but not on other similar transforms syncs (like anglers) - // idk why, but whatever - if (AttachedTransform) - { - var body = AttachedTransform.GetAttachedOWRigidbody(); - if (body) - { - body.OnUnsuspendOWRigidbody -= OnUnsuspend; - body.OnSuspendOWRigidbody -= OnSuspend; - } - } + var body = AttachedTransform.GetAttachedOWRigidbody(); + body.OnUnsuspendOWRigidbody -= OnUnsuspend; + body.OnSuspendOWRigidbody -= OnSuspend; } private void OnUnsuspend(OWRigidbody suspendedBody) => netIdentity.UpdateAuthQueue(AuthQueueAction.Add);