This commit is contained in:
JohnCorby 2023-09-18 14:19:47 -07:00
parent 42b25fdec9
commit 43ecea5681

View File

@ -25,9 +25,15 @@ public static class IOwnedWorldObject_Extensions
/// <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));
}