remove redundant guys. just send another message idc

This commit is contained in:
JohnCorby 2023-09-18 14:31:43 -07:00
parent 43ecea5681
commit 74e68f5359
2 changed files with 0 additions and 11 deletions

View File

@ -25,15 +25,9 @@ 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));
}

View File

@ -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();
}