[F] Fix null safety in GetItemIdFromItemName

This commit is contained in:
Azalea 2024-08-28 17:59:14 -04:00
parent 2ab7ae3c06
commit d5d2247531

View File

@ -23,5 +23,6 @@ internal sealed class ItemCache
} }
} }
public HashSet<uint> GetItemIdFromItemName(string name) => _itemNamesToIds[name]; public HashSet<uint> GetItemIdFromItemName(string name) =>
_itemNamesToIds.TryGetValue(name, out var itemIds) ? itemIds : [];
} }