fix
This commit is contained in:
@@ -57,7 +57,7 @@ namespace ReallifeGamemode.Server.Services
|
|||||||
foreach (Player c in NAPI.Pools.GetAllPlayers())
|
foreach (Player c in NAPI.Pools.GetAllPlayers())
|
||||||
{
|
{
|
||||||
User user = c.GetUser();
|
User user = c.GetUser();
|
||||||
Faction f = user.Faction;
|
Faction f = user?.Faction;
|
||||||
if (f != null)
|
if (f != null)
|
||||||
{
|
{
|
||||||
if (factions.Find(fT => fT.Id == f.Id) != null)
|
if (factions.Find(fT => fT.Id == f.Id) != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user