From 08cdbedb7c5454ae3536f1ddf7a033275953ca19 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Wed, 11 Sep 2024 19:47:25 +0200 Subject: [PATCH] more field accesses --- code/modules/customitems/item_spawning.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm index c1ddca4522..5c559edadc 100644 --- a/code/modules/customitems/item_spawning.dm +++ b/code/modules/customitems/item_spawning.dm @@ -191,7 +191,7 @@ // Check for required access. var/obj/item/weapon/card/id/current_id = M.wear_id if(citem.req_access && citem.req_access > 0) // These are numbers, not lists - if(!(istype(current_id) && (citem.req_access in current_id.access))) + if(!(istype(current_id) && (citem.req_access in current_id.GetAccess()))) log_debug("Custom Item: [key_name(M)] Does not have required access.") continue