mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 21:32:47 +00:00
Merge branch 'dev' into nh-stuff
This commit is contained in:
commit
701881b8bb
@ -358,6 +358,15 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart
|
||||
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
|
||||
// why tf is this here instead of QSBOrb.OnPlayerLeave?
|
||||
|
Loading…
x
Reference in New Issue
Block a user