1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 06:08:20 -05:00

actually fix the previous issue

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

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;