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 c537bc38d..cc9e97eff 100644 --- a/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs +++ b/QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs @@ -25,9 +25,15 @@ public static void RequestOwnership(this IOwnedWorldObject @this) /// /// 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)); }