[F] Fix null safety in GetItemIdFromItemName #3
@ -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 : [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user