Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCorby committed Sep 18, 2023
1 parent 42b25fd commit 43ecea5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions QSB/OwnershipSync/IOwnedWorldObject_Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ public static void RequestOwnership(this IOwnedWorldObject @this)

/// <summary>
/// forcibly gain ownership over the object
///
/// does nothing if you already own this
/// </summary>
public static void ForceOwnership(this IOwnedWorldObject @this)
{
if (@this.Owner == QSBPlayerManager.LocalPlayerId)
{
return;
}
@this.SendMessage(new OwnedWorldObjectMessage(QSBPlayerManager.LocalPlayerId));
}

Expand Down

0 comments on commit 43ecea5

Please sign in to comment.