Add debug for Faction

This commit is contained in:
hydrant
2018-09-22 23:34:55 +02:00
parent 4d733b48c1
commit da876a4a9f
2 changed files with 2 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Linq;
using GTANetworkAPI;
using Microsoft.EntityFrameworkCore;
using reallife_gamemode.Model;
using reallife_gamemode.Server.Entities;
@@ -35,7 +36,7 @@ namespace reallife_gamemode
NAPI.Util.ConsoleOutput(f.Name);
}
foreach(User u in context.Users)
foreach(User u in context.Users.Include(x => x.Faction))
{
Faction f = u.Faction;
NAPI.Util.ConsoleOutput("User: " + u.Name + " | Faction: " + (f == null ? "null" : f.Name));