Skip to content

Commit

Permalink
Cherry-picked commit 1eb2bcf from space-wizards/space-station-14/master
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilisThePikachu authored and SimpleStation14 committed Apr 21, 2024
1 parent 3bf08c7 commit c5688cc
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ public bool IsAllowed(JobPrototype job, [NotNullWhen(false)] out FormattedMessag
return false;
}

if (job.Requirements == null ||
!_cfg.GetCVar(CCVars.GameRoleTimers))
{
return true;
}

var player = _playerManager.LocalSession;
if (player == null)
return true;
Expand All @@ -106,7 +100,7 @@ public bool CheckRoleTime(HashSet<JobRequirement>? requirements, [NotNullWhen(fa
{
reason = null;

if (requirements == null)
if (requirements == null || !_cfg.GetCVar(CCVars.GameRoleTimers))
return true;

var reasons = new List<string>();
Expand Down

0 comments on commit c5688cc

Please sign in to comment.