FIxed nullref inside GiftExists

This commit is contained in:
Chomp
2025-01-31 14:22:02 +00:00
parent a5cbc5e40c
commit 6a4fda8d84
+1 -1
View File
@@ -29,7 +29,7 @@ public class GiftService(
*/
public bool GiftExists(string giftId)
{
return _giftConfig.Gifts[giftId] is not null;
return _giftConfig.Gifts.ContainsKey(giftId);
}
public Gift GetGiftById(string giftId)