public static void SendComplexUnionData(Union union, int to) { if (Main.netMode == 2) { ModPacket p = ServerSideCharacter2.Instance.GetPacket(); p.Write((int)SSCMessageType.UnionInfoComplex); var tmp = JsonConvert.SerializeObject(union.GetVerbose(to), Formatting.None); p.Write(tmp); p.Send(to); } }