Skip to content

Commit

Permalink
Вынос санитайза
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Dec 10, 2024
1 parent bc05b85 commit 17e6bf8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modular_ss220/jobs/code/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()

0 comments on commit 17e6bf8

Please sign in to comment.