mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
376494e7f5
commit
401074fc67
@ -814,12 +814,16 @@ public static bool ReplacePlayerForConnection(NetworkConnectionToClient conn, Ga
|
||||
Respawn(identity);
|
||||
|
||||
if (keepAuthority)
|
||||
{
|
||||
// This needs to be sent to clear isLocalPlayer on
|
||||
// client while keeping hasAuthority true
|
||||
SendChangeOwnerMessage(previousPlayer, conn);
|
||||
}
|
||||
else
|
||||
{
|
||||
// This clears both isLocalPlayer and hasAuthority on client
|
||||
previousPlayer.RemoveClientAuthority();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user