Fix server exception at raid end when client sends bantype data (#257)

This commit is contained in:
hulkhan22
2025-05-18 20:38:13 +02:00
committed by GitHub
parent e783f26815
commit 21382a1e06
4 changed files with 11 additions and 11 deletions
@@ -608,7 +608,7 @@ public class ProfileHelper(
public bool PlayerIsFleaBanned(PmcData pmcProfile)
{
var currentTimestamp = _timeUtil.GetTimeStamp();
return pmcProfile?.Info?.Bans?.Any(b => b.BanType == BanType.RAGFAIR && currentTimestamp < b.DateTime) ?? false;
return pmcProfile?.Info?.Bans?.Any(b => b.BanType == BanType.RagFair && currentTimestamp < b.DateTime) ?? false;
}
public bool HasAccessToRepeatableFreeRefreshSystem(PmcData pmcProfile)