From 17e6bf8010c6353aadc5eadb4f6e2515444a8eb4 Mon Sep 17 00:00:00 2001 From: KageIIte Date: Tue, 10 Dec 2024 17:29:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BD=D0=BE=D1=81=20=D1=81=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=82=D0=B0=D0=B9=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modular_ss220/jobs/code/jobs.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modular_ss220/jobs/code/jobs.dm b/modular_ss220/jobs/code/jobs.dm index 06ad8495471e..dbea6020d7f7 100644 --- a/modular_ss220/jobs/code/jobs.dm +++ b/modular_ss220/jobs/code/jobs.dm @@ -119,8 +119,6 @@ if(!GLOB.configuration.jobs_restrict.enable_black_list) return FALSE - GLOB.configuration.jobs_restrict.sanitize_job_checks() - var/list/job_ban = GLOB.configuration.jobs_restrict.blacklist_species if(!C || !length(job_ban)) return FALSE @@ -130,7 +128,11 @@ return FALSE /mob/new_player/IsJobAvailable(rank) - . = .. () + . = ..() var/datum/job/job = SSjobs.GetJob(rank) if(job.species_ban(client)) return FALSE + +/datum/controller/subsystem/jobs/Initialize() + . = ..() + GLOB.configuration.jobs_restrict.sanitize_job_checks()