evtl fix character
This commit is contained in:
@@ -47,12 +47,12 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
{
|
||||
using (context = new DatabaseContext())
|
||||
{
|
||||
return context.Characters.FirstOrDefault(u => u.UserId == user.Id);
|
||||
return context.Characters.FirstOrDefault(u => u.Id == user.CharacterId);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return context.Characters.FirstOrDefault(u => u.UserId == user.Id);
|
||||
return context.Characters.FirstOrDefault(u => u.Id == user.CharacterId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user