From f695f254a37c95dbca54eb9cb27bb080e6f1d4de Mon Sep 17 00:00:00 2001 From: mischa Date: Sat, 20 Jul 2024 18:44:35 +0200 Subject: [PATCH] Revert "NetworkClient: handle EntityStateMessageUnreliable in host mode too" This reverts commit 95f699cc2b21d1f6e561f7dde328dd2ac3f70129. --- Assets/Mirror/Core/NetworkClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.