J.R. Smith may not be out of his slump, but his performance in Game 5 against the Pacers last night was a step in the right direction.

Smith, who has been mired in a horrific shooting slump since his ejection in Game 3 of the Knicks’ first-round series against the Celtics, had 13 points to go along with six rebounds, two assists, three steals and a blocked shot to help the Knicks earn an 85-75 win over the Pacers to keep their season alive.

“I still didn’t shoot my best, but it always helps to come home and play in front of these fans,” Smith said. “Hopefully the little bit of rhythm I did get carries me over.”

The notoriously streaky shooting guard has been dreadful ever since elbowing Jason Terry in the face late in a win over the Celtics on April 26. After shooting 43.5 percent from the field and 31.2 percent from 3-point range in those first three games against the Celtics, Smith had shot a dreadful 26-for-91 (28.6 percent) from the field and 10-for-37 (27 percent) from 3-point range since returning from that one-game suspension.

And while Smith didn’t exactly shoot the lights out last night, finishing 4-for-11, he did get off to a good start, nailing a corner 3-pointer on his first shot of the game.