Gerald Wallace didn’t need to be told it had been awhile since he had last scored in double figures.

“It’s probably been all season,” Wallace said with a wry smile after scoring 13 points and grabbing eight rebounds in Tuesday’s 108-98 victory over the Hornets in Brooklyn.

It hadn’t been all season, but it had been 12 games since Wallace cracked double-figures, and just the fifth time in 32 games since Jan. 1.

For all of the things that Wallace brings to the table for the Nets — defense, energy, intensity, effort — his lack of scoring punch has at times made him a liability on the court, to the point where he didn’t play in the fourth quarter of Monday’s loss to the 76ers in Philadelphia.

“My main thing is just trying to figure out a way to score,” he said. “Right now, it’s all mental. My shot isn’t falling, I’m getting to the rim and I’m not attacking the rim like I’m used to doing ... it’s just a whole lot of things.

“I think me beating my head up against a wall has made things a little worse, but I think tonight will hopefully get me headed in the right direction, especially as we’re going into the playoffs.”

Wallace has been completely out of sorts in March shooting the ball. In seven games this month, the 6-foor-7 small forward is shooting 16-for-53 (30.2 percent) from the field, including a dismal 2-for-14 (14.3 percent) from 3-point range.