Skip to content

Commit

Permalink
fix(NetworkSceneManager): registering ready and not ready message for…
Browse files Browse the repository at this point in the history
… host client

we can still register these message as they are needed to spawn objects once scene is ready
  • Loading branch information
James-Frowen committed Sep 22, 2021
1 parent 54c8520 commit 6a97ae9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Assets/Mirage/Runtime/NetworkSceneManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ public void ScenesPlayerIsInNonAlloc(INetworkPlayer player, List<Scene> scenes)
private void RegisterClientMessages()
{
Client.MessageHandler.RegisterHandler<SceneMessage>(ClientStartSceneMessage);

if (Client.IsLocalClient) return;

Client.MessageHandler.RegisterHandler<SceneReadyMessage>(ClientFinishedLoadingSceneMessage);
Client.MessageHandler.RegisterHandler<SceneNotReadyMessage>(ClientNotReadyMessage);
}
Expand Down

0 comments on commit 6a97ae9

Please sign in to comment.