mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
funny bug
This commit is contained in:
parent
361e6bef05
commit
5f43e92d90
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user