NEW YORK — Harrison Barnes scored 30 points and the Dallas Mavericks turned around the game in the third quarter on their way to a 110-97 victory Tuesday night over the Knicks, who lost their eighth straight game.

Dallas couldn't stop New York early, and then dominated the second half to win for the third time in four games, with only a loss to NBA-leading Houston in that stretch.

Rookie Dennis Smith Jr. added 17 points for the Mavs and Dirk Nowitzki had 13. Yogi Ferrell finished with 10, but eight came during a game-changing 14-0 run in the third quarter.

Michael Beasley scored 21 and Tim Hardaway Jr. had 19 for the Knicks, who got a visit from Kristaps Porzingis before the game and then showed again that they have no hope of winning without him. They lost for the 16th time in 17 games, most coming since their All-Star forward tore his left ACL on Feb. 6.

This one looked as if it could be different when the Knicks made 17 of their first 24 shots against a defenseless Dallas defense. But the Mavs made enough shots of their own to stay in the game, then surged ahead after halftime.

It was tied at 64 before Barnes scored on a follow shot to start the 14-0 spurt that included two 3-pointers and another basket by Ferrell.

Dallas outscored New York 26-12 in the third.

New York closed within four in the fourth quarter as Trey Burke led a rally, but Smith made a 3-pointer and Barnes followed with four straight points to put it away.

TIP-INS

Mavericks: Dorian Finney-Smith started after sitting out against Houston while continuing his recovery from left quadriceps tendinitis.

Knicks: Enes Kanter (back spasms) and Lance Thomas (sprained right thumb) were back in the starting lineup. ... The Knicks signed F Troy Williams for the rest of the season after the expiration of his second 10-day contract. Williams averaged 8.1 points in eight games after signing the initial contract on Feb. 21.