diff --git a/EXILED/Exiled.Events/Patches/Events/Item/KeycardInteracting.cs b/EXILED/Exiled.Events/Patches/Events/Item/KeycardInteracting.cs index e26ef525d..2797da097 100644 --- a/EXILED/Exiled.Events/Patches/Events/Item/KeycardInteracting.cs +++ b/EXILED/Exiled.Events/Patches/Events/Item/KeycardInteracting.cs @@ -168,8 +168,9 @@ private static IEnumerable Transpiler(IEnumerable.Pool.Return(newInstructions); } - private static bool CheckPermissions(BaseKeycardPickup keycard, DoorPermissions permissions) + private static bool CheckPermissions(BaseKeycardPickup keycard, DoorVariant door) { + DoorPermissions permissions = door.RequiredPermissions; if (permissions.RequiredPermissions == KeycardPermissions.None) { return true;