mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-27 06:18:52 +00:00
blah
This commit is contained in:
parent
42b25fdec9
commit
43ecea5681
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user