diff --git a/Assets/Mirror/Core/NetworkClient.cs b/Assets/Mirror/Core/NetworkClient.cs index 95c765c98..604e91da0 100644 --- a/Assets/Mirror/Core/NetworkClient.cs +++ b/Assets/Mirror/Core/NetworkClient.cs @@ -512,6 +512,7 @@ internal static void RegisterMessageHandlers(bool hostMode) RegisterHandler(_ => { }); // host mode doesn't need state updates RegisterHandler(_ => { }); + RegisterHandler(_ => { }); RegisterHandler(_ => { }, false); } else @@ -524,6 +525,7 @@ internal static void RegisterMessageHandlers(bool hostMode) RegisterHandler(OnObjectSpawnStarted); RegisterHandler(OnObjectSpawnFinished); RegisterHandler(OnEntityStateMessage); + RegisterHandler(OnEntityStateMessageUnreliable); RegisterHandler(OnAckMessage, false); } @@ -531,7 +533,6 @@ internal static void RegisterMessageHandlers(bool hostMode) RegisterHandler(OnTimeSnapshotMessage); RegisterHandler(OnChangeOwner); RegisterHandler(OnRPCMessage); - RegisterHandler(OnEntityStateMessageUnreliable); } /// Register a handler for a message type T. Most should require authentication.