This commit is contained in:
hydrant
2020-03-29 17:36:58 +02:00
parent bcfc2105ea
commit 1871a97122
5 changed files with 30 additions and 17 deletions

View File

@@ -107,7 +107,14 @@ namespace ReallifeGamemode.Database.Entities
}
[NotMapped]
public IPlayer NewPlayer => new RagePlayer(Player);
public IPlayer NewPlayer
{
get
{
if (Player != null) return new RagePlayer(Player);
return null;
}
}
public override string BankAccountName => Name;
}