mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
remove redundant guys. just send another message idc
This commit is contained in:
parent
43ecea5681
commit
74e68f5359
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user