We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4d49b commit 2494fbdCopy full SHA for 2494fbd
Framework/Intersect.Framework.Core/Network/PacketTypeRegistry.cs
@@ -1,4 +1,5 @@
1
-using Intersect.Collections;
+using System.Globalization;
2
+using Intersect.Collections;
3
using System.Reflection;
4
using Intersect.Framework.Reflection;
5
using Microsoft.Extensions.Logging;
@@ -55,7 +56,10 @@ public bool TryRegisterBuiltIn()
55
56
);
57
}
58
)
- .OrderBy(type => type.ToString());
59
+ .OrderBy(
60
+ type => type.GetName(qualified: true),
61
+ CultureInfo.InvariantCulture.CompareInfo.GetStringComparer(CompareOptions.Ordinal)
62
+ );
63
BuiltInTypesInternal.AddRange(definedPacketTypes);
64
return BuiltInTypesInternal.All(TryRegister) && BuiltInTypesInternal.Count > 0;
65
0 commit comments