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:
parent
5ac3abac99
commit
ee102e3755
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user