The NBA is moving the 2017 All-Star game out of Charlotte because of its objections to a North Carolina law that limits anti-discrimination protections for lesbian, gay and transgender people.

The league had expressed its opposition to the law known as HB2 since it was enacted in March, and its decision Thursday came less than a month after state legislators revisited the law and chose to leave it largely unchanged.