mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkManager.RegisterServerMessages for AddPlayerMessage uses OnServerAddPlayer directly instead of wrapping it with a OnServerAddPlayerMessageInternal function
This commit is contained in:
parent
fa4efa6683
commit
a39954003a
@ -205,7 +205,7 @@ internal void RegisterServerMessages()
|
||||
NetworkServer.RegisterHandler<ConnectMessage>(OnServerConnectInternal);
|
||||
NetworkServer.RegisterHandler<DisconnectMessage>(OnServerDisconnectInternal);
|
||||
NetworkServer.RegisterHandler<ReadyMessage>(OnServerReadyMessageInternal);
|
||||
NetworkServer.RegisterHandler<AddPlayerMessage>(OnServerAddPlayerMessageInternal);
|
||||
NetworkServer.RegisterHandler<AddPlayerMessage>(OnServerAddPlayer);
|
||||
NetworkServer.RegisterHandler<RemovePlayerMessage>(OnServerRemovePlayerMessageInternal);
|
||||
NetworkServer.RegisterHandler<ErrorMessage>(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");
|
||||
|
Loading…
Reference in New Issue
Block a user