Add debug for Faction problem

This commit is contained in:
Lennart Kampshoff
2018-09-22 16:58:40 +02:00
parent 40471792d1
commit 4b5ce6f7a5
2 changed files with 16 additions and 1 deletions

View File

@@ -26,7 +26,10 @@ namespace reallife_gamemode.Server.Extensions
public static Faction GetFaction(this Client client)
{
return client.GetUser()?.Faction ?? null;
using (DatabaseContext dbContext = new DatabaseContext())
{
return dbContext.Factions.Find(client.GetUser().Faction);
}
}
}
}