From ae109891c1d836fa2a647a2c19ed2b7837dd6ac4 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 4 Mar 2024 18:00:53 -0800 Subject: [PATCH] Fix job time stuff not detecting the database was down. (#81821) This comment hasn't been true for 7 years. --- code/modules/client/client_procs.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 5de13413582..1ba96157dc8 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -1164,8 +1164,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( if(!CONFIG_GET(flag/use_age_restriction_for_jobs)) return 0 - if(!isnum(player_age)) - return 0 //This is only a number if the db connection is established, otherwise it is text: "Requires database", meaning these restrictions cannot be enforced + if(!isnum(player_age) || player_age < 0) + return 0 if(!isnum(days_needed)) return 0