Add debug for Faction problem
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user