This commit is contained in:
vis2k 2021-03-09 17:54:43 +08:00
parent 0291d0a402
commit 25e9904fa8

View File

@ -1070,6 +1070,7 @@ public void RemoveClientAuthority()
NetworkConnectionToClient previousOwner = connectionToClient;
// TODO why do we clear this twice?
connectionToClient = null;
// we need to resynchronize the entire object
@ -1078,6 +1079,7 @@ public void RemoveClientAuthority()
// reset all variables and remove authority
NetworkServer.SendSpawnMessage(this, previousOwner);
// TODO why do we clear this twice?
connectionToClient = null;
}
}