From a39954003ab2534ae8bf20e7567856bcde6cf36a Mon Sep 17 00:00:00 2001 From: vis2k Date: Fri, 22 Mar 2019 09:46:14 +0100 Subject: [PATCH] NetworkManager.RegisterServerMessages for AddPlayerMessage uses OnServerAddPlayer directly instead of wrapping it with a OnServerAddPlayerMessageInternal function --- Assets/Mirror/Runtime/NetworkManager.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 225b1ca42..747d97d11 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -205,7 +205,7 @@ internal void RegisterServerMessages() NetworkServer.RegisterHandler(OnServerConnectInternal); NetworkServer.RegisterHandler(OnServerDisconnectInternal); NetworkServer.RegisterHandler(OnServerReadyMessageInternal); - NetworkServer.RegisterHandler(OnServerAddPlayerMessageInternal); + NetworkServer.RegisterHandler(OnServerAddPlayer); NetworkServer.RegisterHandler(OnServerRemovePlayerMessageInternal); NetworkServer.RegisterHandler(OnServerErrorInternal); } @@ -554,13 +554,6 @@ internal void OnServerReadyMessageInternal(NetworkConnection conn, ReadyMessage OnServerReady(conn); } - internal void OnServerAddPlayerMessageInternal(NetworkConnection conn, AddPlayerMessage msg) - { - if (LogFilter.Debug) Debug.Log("NetworkManager.OnServerAddPlayerMessageInternal"); - - OnServerAddPlayer(conn, msg); - } - internal void OnServerRemovePlayerMessageInternal(NetworkConnection conn, RemovePlayerMessage msg) { if (LogFilter.Debug) Debug.Log("NetworkManager.OnServerRemovePlayerMessageInternal");