diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index d6a265661..d322fa45b 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -349,8 +349,7 @@ void UpdateServerDelta() // authoritative movement done by the host will have to be broadcasted // here by checking IsClientWithAuthority. // TODO send same time that NetworkServer sends time snapshot? - if (NetworkTime.localTime >= lastServerSendTime + sendInterval && // CUSTOM CHANGE: allow custom sendRate + sendInterval again - (syncDirection == SyncDirection.ServerToClient || IsClientWithAuthority)) + if (NetworkTime.localTime >= lastServerSendTime + sendInterval) // CUSTOM CHANGE: allow custom sendRate + sendInterval again { // send snapshot without timestamp. // receiver gets it from batch timestamp to save bandwidth. @@ -426,8 +425,11 @@ void UpdateServerInterpolation() void UpdateServer() { // broadcasting - UpdateServerBaseline(); - UpdateServerDelta(); + if (syncDirection == SyncDirection.ServerToClient || IsClientWithAuthority) + { + UpdateServerBaseline(); + UpdateServerDelta(); + } // interpolate remote clients UpdateServerInterpolation();