fix User.Client

This commit is contained in:
hydrant
2019-06-25 21:11:01 +02:00
parent 0d18cc40af
commit 7986c137ac

View File

@@ -160,7 +160,7 @@ namespace ReallifeGamemode.Server.Entities
[NotMapped]
public Client Client
{
get => NAPI.Player.GetPlayerFromName(this.Name);
get => NAPI.Pools.GetAllPlayers().Where(c => c.Name.ToLower() == this.Name.ToLower()).FirstOrDefault();
}
internal T GetData<T>(string key, T nullValue)