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

Merge pull request #16980 from smoogipoo/fix-union-workaround-resolver

Fix SignalR union workaround resolver failing on multiple union'd types
This commit is contained in:
Dean Herbert 2022-02-24 22:24:48 +09:00 committed by GitHub
commit 35302aa297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ namespace osu.Game.Online
// This should not be required. The fallback should work. But something is weird with the way caching is done.
// For future adventurers, I would not advise looking into this further. It's likely not worth the effort.
baseMap = baseMap.Concat(baseMap.Select(t => (t.baseType, t.baseType)));
baseMap = baseMap.Concat(baseMap.Select(t => (t.baseType, t.baseType)).Distinct());
return new Dictionary<Type, IMessagePackFormatter>(baseMap.Select(t =>
{