mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
Update QuantumAuthorityEvent.cs
This commit is contained in:
parent
aa387ee386
commit
a4184f921c
@ -28,6 +28,15 @@ namespace QSB.QuantumSync.Events
|
||||
var objects = QSBWorldSync.GetWorldObjects<IQSBQuantumObject>();
|
||||
var obj = objects.ToList()[message.ObjectId];
|
||||
|
||||
// Deciding if to change the object's owner
|
||||
// Message
|
||||
// | = 0 | > 0 |
|
||||
// = 0 | Yes*| Yes |
|
||||
// > 0 | Yes | No |
|
||||
// Obj
|
||||
// *Doesn't change anything,
|
||||
// so can be yes or no
|
||||
|
||||
return obj.ControllingPlayer == 0 || message.AuthorityOwner == 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user