This commit is contained in:
Łukasz Domeradzki 2024-09-01 23:56:25 +02:00
parent 1ae59f4229
commit 63c61f8e47
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -1187,7 +1187,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
break;
}
if ((packageData.ProhibitRunInCountries?.Contains(IPCountryCode) == true) || ((packageData.OnlyAllowRunInCountries?.Count > 0) && !packageData.OnlyAllowRunInCountries.Contains(IPCountryCode))) {
if ((packageData.ProhibitRunInCountries?.Contains(IPCountryCode) == true) || (packageData.OnlyAllowRunInCountries is { IsEmpty: false } && !packageData.OnlyAllowRunInCountries.Contains(IPCountryCode))) {
// We are restricted by this package, we can only be saved by another package that is not restricted
DateTime regionRestrictedUntilPackage = ownedPackageData.TimeCreated.AddMonths(RegionRestrictionPlayableBlockMonths);