actually fix the previous issue

This commit is contained in:
RaidMax 2022-06-12 16:37:07 -05:00
parent ef3db63ba7
commit df3e226dc9

View File

@ -76,11 +76,11 @@ namespace SharedLibraryCore.Database.Models
[NotMapped] [NotMapped]
public virtual int? IPAddress public virtual int? IPAddress
{ {
get => CurrentAlias.IPAddress; get => CurrentAlias?.IPAddress;
set => CurrentAlias.IPAddress = value; set => CurrentAlias.IPAddress = value;
} }
[NotMapped] public string IPAddressString => IPAddress is null ? null : IPAddress.ConvertIPtoString(); [NotMapped] public string IPAddressString => IPAddress.ConvertIPtoString();
[NotMapped] public bool IsIngame => ClientNumber >= 0; [NotMapped] public bool IsIngame => ClientNumber >= 0;