From 1eb2bcf45532c4200c1f2606d1759fe335a636f7 Mon Sep 17 00:00:00 2001 From: Vasilis Date: Sun, 10 Mar 2024 17:30:16 +0100 Subject: [PATCH] Fix game.role_timers not effecting the antag menu (#25964) * Fix game.role_timers not effecting the antag menu * Yeah i guess i should --- .../Players/PlayTimeTracking/JobRequirementsManager.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs b/Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs index f896d7fa39..82ac4aa28f 100644 --- a/Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs +++ b/Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs @@ -88,12 +88,6 @@ public sealed class JobRequirementsManager return false; } - if (job.Requirements == null || - !_cfg.GetCVar(CCVars.GameRoleTimers)) - { - return true; - } - var player = _playerManager.LocalSession; if (player == null) return true; @@ -105,7 +99,7 @@ public sealed class JobRequirementsManager { reason = null; - if (requirements == null) + if (requirements == null || !_cfg.GetCVar(CCVars.GameRoleTimers)) return true; var reasons = new List(); -- 2.51.2