mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: #1593 - NetworkRoomManager.ServerChangeScene doesn't destroy the world player before replacing the connection. otherwise ReplacePlayerForConnection removes authority form a destroyed object, causing all kidns of errors. The call wasn't actually needed. (#1594)
* fix: #1593 - NetworkRoomManager.ServerChangeScene destroys the world player after replacing the connection, not before. previously ReplacePlayerForConnection would operate on dead data. * remove it entirely
This commit is contained in:
parent
9a50fbd507
commit
347cb5374d
@ -324,7 +324,6 @@ public override void ServerChangeScene(string newSceneName)
|
||||
NetworkIdentity identity = roomPlayer.GetComponent<NetworkIdentity>();
|
||||
|
||||
NetworkIdentity playerController = identity.connectionToClient.identity;
|
||||
NetworkServer.Destroy(playerController.gameObject);
|
||||
|
||||
if (NetworkServer.active)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user