diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index 1fcfadbe9..8440e2d60 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -256,9 +256,18 @@ void SerializeServerDelta(NetworkWriter writer, byte baselineTick, Vector3? posi { writer.WriteByte(baselineTick); - if (syncPosition) writer.WriteVector3(position.Value); - if (syncRotation) writer.WriteQuaternion(rotation.Value); - if (syncScale) writer.WriteVector3(scale.Value); + if (syncPosition) + { + writer.WriteVector3(position.Value); + } + if (syncRotation) + { + writer.WriteQuaternion(rotation.Value); + } + if (syncScale) + { + writer.WriteVector3(scale.Value); + } } bool DeserializeServerDelta(NetworkReader reader, out byte baselineTick, out Vector3? position, out Quaternion? rotation, out Vector3? scale)