Updated

John McEnroe says the Studio 54 era wasn’t all it was cracked up to be — admitting he couldn’t even get into the storied club — and he even calls Andy Warhol “annoying” and “mediocre” in his upcoming memoir.

The tennis enfant terrible recalls in “But Seriously,” out Tuesday, that he could never get past the velvet rope at Studio 54, pleading with its infamous doormen, “I’m six in the world!” But, “the doormen would be like, ‘So? McEnroe, get the hell out of here!’ In fact, I don’t think they even knew my name — my memory has added that in the hope of making me feel better.”

Of Warhol, McEnroe writes, “He was always there at every party I was ever at, taking your picture late at night, even when you were super f - - ked up . . . I remember thinking, ‘Who is this weirdo with the fake hair? Why is he waving his camera around when we’re here at 3 in the morning? Isn’t there a place that could be off-limits?” (Warhol was known for taking Polaroids of everyone, including Mick Jagger, Yves Saint Laurent, Jack Nicholson, Debbie Harry, Alfred Hitchcock and Pelé.)

But in his book, McEnroe complains that Warhol interfered with his sex life, saying that at late-night parties, where one might “loosen your collar and try to find a good-looking model or whatever,” the artist “always seemed to be up in everyone’s face with his camera, being a pain in the ass.”

The seven-time Grand Slam winner didn’t think much of Warhol as an artist either, saying he found him to be “mediocre” before he later came to appreciate the work.

Click here to read more in the New York Post.