mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 07:35:31 +01:00
Merge pull request #3474 from VOREStation/vplk-sundry-runtimes
Sundry Runtime Fixes
This commit is contained in:
@@ -224,12 +224,14 @@
|
||||
var/datum/gear/G = gear_datums[thing]
|
||||
if(G)
|
||||
var/permitted = 0
|
||||
if(G.allowed_roles)
|
||||
if(!G.allowed_roles)
|
||||
permitted = 1
|
||||
else if(!previewJob)
|
||||
permitted = 0
|
||||
else
|
||||
for(var/job_name in G.allowed_roles)
|
||||
if(previewJob.title == job_name)
|
||||
permitted = 1
|
||||
else
|
||||
permitted = 1
|
||||
|
||||
if(G.whitelisted && (G.whitelisted != mannequin.species.name))
|
||||
permitted = 0
|
||||
|
||||
Reference in New Issue
Block a user