From eb4f0375ca083596f24d2dd089e49bb807bdf569 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Wed, 10 Aug 2022 20:19:01 -0400 Subject: [PATCH] fixes runtime when clicking an airlock with TK (#69056) * fixes runtime when clicking an airlock with TK by checking the accessor is a mob. --- code/modules/jobs/access.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/jobs/access.dm b/code/modules/jobs/access.dm index 766c9e2f340..4895e7e2f1e 100644 --- a/code/modules/jobs/access.dm +++ b/code/modules/jobs/access.dm @@ -6,6 +6,8 @@ //check if it doesn't require any access at all if(check_access(null)) return TRUE + if(!istype(accessor)) //likely a TK user. + return FALSE if(issilicon(accessor)) if(ispAI(accessor)) return FALSE