funny bug

This commit is contained in:
JohnCorby 2022-08-26 16:15:50 -07:00
parent 361e6bef05
commit 5f43e92d90

View File

@ -74,15 +74,16 @@ public class QSBStationaryProbeLauncher : QSBProbeLauncher, ILinkedWorldObject<S
{
base.SendInitialState(to);
// BUG: will make host be the user and have authority instead of the actual user
this.SendMessage(new StationaryProbeLauncherMessage(_isInUse) { To = to });
}
public void OnRemoteUseStateChanged(bool isInUse, uint from)
public void OnRemoteUseStateChanged(bool isInUse, uint user)
{
// Whoever is using it needs authority to be able to rotate it
if (QSBCore.IsHost)
{
NetworkBehaviour.netIdentity.SetAuthority(from);
NetworkBehaviour.netIdentity.SetAuthority(isInUse ? user : uint.MaxValue);
}
_isInUse = isInUse;