revert authority from model ship

This commit is contained in:
JohnCorby 2022-10-06 19:50:01 -07:00
parent 11e9317368
commit 5368d6548a

View File

@ -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?