v1.2.6.0 (Winter Update)

This commit is contained in:
Regalis11
2023-12-14 16:11:27 +02:00
parent af8cc89fce
commit b91e85559d
375 changed files with 7771 additions and 2874 deletions
@@ -14,6 +14,16 @@ namespace Barotrauma.Networking
public readonly string Reason;
public Option<SerializableDateTime> ExpirationTime;
public readonly UInt32 UniqueIdentifier;
public bool MatchesClient(Client client)
{
if (client == null) { return false; }
if (AddressOrAccountId.TryGet(out AccountId bannedAccountId) && client.AccountId.TryUnwrap(out AccountId? accountId))
{
return bannedAccountId.Equals(accountId);
}
return false;
}
}
partial class BanList