This commit is contained in:
vis2k 2022-03-09 15:51:54 +08:00
parent c14566c731
commit 8bef2bf864

View File

@ -1283,6 +1283,7 @@ internal static void ChangeOwner(NetworkIdentity identity, ChangeOwnerMessage me
{
// set ownership flag (aka authority)
identity.hasAuthority = message.isOwner;
// TODO call this AFTER OnStopLocalPlayer? clear everything first, then set new values?
identity.NotifyAuthority();
// set localPlayer flag