1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 20:20:31 +08:00

Fix incorrectly overwritten ReferenceLoopHandling setting

This commit is contained in:
Dean Herbert
2021-08-03 14:55:20 +09:00
Unverified
parent 5ac3abac99
commit ee102e3755
+3 -6
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;
});
}