fix(core): Fixes insensitive type lookup (#425)

This commit is contained in:
Kamron Batman 2021-01-20 23:23:07 -08:00 committed by GitHub
parent 3cc09bf606
commit c6ef6ff80a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ namespace Server
{
_cache = cache;
var map = ignoreCase ? _cache._nameMap : _cache._nameMapInsensitive;
var map = ignoreCase ? _cache._nameMapInsensitive : _cache._nameMap;
_values = map.TryGetValue(name, out var values) ? values : Array.Empty<int>();
_index = 0;
_current = default;