From 74e68f53592999ed195b3ce7517f1efecd64f58f Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 18 Sep 2023 14:31:43 -0700 Subject: [PATCH] remove redundant guys. just send another message idc --- QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs | 6 ------ QSB/OwnershipSync/OwnershipManager.cs | 5 ----- 2 files changed, 11 deletions(-) diff --git a/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs b/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs index cc9e97ef..c537bc38 100644 --- a/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs +++ b/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs @@ -25,15 +25,9 @@ public static class IOwnedWorldObject_Extensions /// /// forcibly gain ownership over the object - /// - /// does nothing if you already own this /// public static void ForceOwnership(this IOwnedWorldObject @this) { - if (@this.Owner == QSBPlayerManager.LocalPlayerId) - { - return; - } @this.SendMessage(new OwnedWorldObjectMessage(QSBPlayerManager.LocalPlayerId)); } diff --git a/QSB/OwnershipSync/OwnershipManager.cs b/QSB/OwnershipSync/OwnershipManager.cs index 2cb52de4..ef0a5c28 100644 --- a/QSB/OwnershipSync/OwnershipManager.cs +++ b/QSB/OwnershipSync/OwnershipManager.cs @@ -81,11 +81,6 @@ public static class OwnershipManager public static void UpdateOwnerQueue(this NetworkIdentity identity, OwnerQueueAction action) { - if (action == OwnerQueueAction.Force && identity.isOwned) - { - return; - } - new OwnerQueueMessage(identity.netId, action).Send(); }