mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
revert authority from model ship
This commit is contained in:
parent
11e9317368
commit
5368d6548a
@ -358,6 +358,15 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart
|
|||||||
identity.SetAuthority(QSBPlayerManager.LocalPlayerId);
|
identity.SetAuthority(QSBPlayerManager.LocalPlayerId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// revert authority from model ship
|
||||||
|
if (ModelShipTransformSync.LocalInstance != null)
|
||||||
|
{
|
||||||
|
var identity = ModelShipTransformSync.LocalInstance.netIdentity;
|
||||||
|
if (identity != null && identity.connectionToClient == conn)
|
||||||
|
{
|
||||||
|
identity.SetAuthority(QSBPlayerManager.LocalPlayerId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// stop dragging for the orbs this player was dragging
|
// stop dragging for the orbs this player was dragging
|
||||||
// why tf is this here instead of QSBOrb.OnPlayerLeave?
|
// why tf is this here instead of QSBOrb.OnPlayerLeave?
|
||||||
|
Loading…
Reference in New Issue
Block a user