The Indiana Pacers weren't supposed to have much of a chance against the New York Knicks.

Not without Danny Granger (flu) and going against a lineup that featured Carmelo Anthony, Amare Stoudemire and Chauncey Billups.

There the Pacers were, though, countering everything the Knicks threw at them.

Carmelo. Amare. Chauncey.

It didn't matter.

The Pacers scrapped their way around the court defensively and Tyler Hansbrough dominated the paint in their 106-93 victory Sunday night at Madison Square Garden.

The victory ended a six-game losing streak for the Pacers. The two teams meet again Tuesday at Conseco Fieldhouse.

"Those guys just got after it," Pacers interim coach Frank Vogel said. "They were tired of losing. I've said all along, this group does not like losing. To lose six in a row, they came out and gave it all they've got, and it was a great effort."

Hansbrough didn't have a problem scoring against any Knicks defender coach Mike D'Antoni used on him.

Hansbrough scored a career-high 29 points on 12-of-20 shooting, to go with eight rebounds, in 40 minutes.

Hansbrough, who replaced Josh McRoberts in the starting lineup last week, has scored at least 20 points in four straight games while shooting 59 percent from the field during that span.

"He has a motor that is really unparalleled in this league," Vogel said. "Nobody goes harder than that kid. Nobody plays harder than Tyler Hansbrough, and whatever his motivation is, I just think he goes hard."