try fix interactionmenu close

This commit is contained in:
Michael
2020-06-02 15:06:11 +02:00
parent 32540c4aa9
commit 9a3af81079
2 changed files with 4 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ namespace ReallifeGamemode.Server.Events
nextPayday = u.PaydayTimer
};
string faction = u.Faction.Name;
string faction = u.Faction?.Name;
string factionleader = u.FactionLeader ? u.Faction.Name : null;
string group = u.Group != null && u.GroupRank >= GroupRank.MANAGER ? u.Group.Name : null;
bool factionInvite = player.HasData("accept_faction_invite");