Flagged method result as nullable

This commit is contained in:
Chomp
2025-04-10 13:10:17 +01:00
parent 259c8b7cc5
commit cc8198f3e6
@@ -33,7 +33,7 @@ public class GiftService(
return _giftConfig.Gifts.ContainsKey(giftId);
}
public Gift GetGiftById(string giftId)
public Gift? GetGiftById(string giftId)
{
_giftConfig.Gifts.TryGetValue(giftId, out var gift);
@@ -89,7 +89,7 @@ public class GiftService(
_logger.Warning($"Gift {giftId} has items but no collection time limit, defaulting to 48 hours");
}
// Handle system messsages
// Handle system messages
if (giftData.Sender == GiftSenderType.System)
{
// Has a localisable text id to send to player