From 43ecea56810d0a50bf5650219a44895596aaa7e5 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 18 Sep 2023 14:19:47 -0700 Subject: [PATCH] blah --- QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs b/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs index c537bc38..cc9e97ef 100644 --- a/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs +++ b/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs @@ -25,9 +25,15 @@ 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)); }