1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:13:21 +08:00

Fix incorrectly overwritten ReferenceLoopHandling setting

This commit is contained in:
Dean Herbert 2021-08-03 14:55:20 +09:00
parent 5ac3abac99
commit ee102e3755

View File

@ -156,12 +156,9 @@ namespace osu.Game.Online
builder.AddNewtonsoftJsonProtocol(options =>
{
options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
options.PayloadSerializerSettings = new JsonSerializerSettings
{
// TODO: This should only be required to be `TypeNameHandling.Auto`.
// See usage in osu-server-spectator for further documentation as to why this is required.
TypeNameHandling = TypeNameHandling.All
};
// TODO: This should only be required to be `TypeNameHandling.Auto`.
// See usage in osu-server-spectator for further documentation as to why this is required.
options.PayloadSerializerSettings.TypeNameHandling = TypeNameHandling.All;
});
}