AUSTIN, Texas (AP) — The NBA is warning Texas over a proposed “bathroom bill” targeting transgender people that is similar to a North Carolina law that prompted the league to move the All-Star Game out of that state.

The NBA on Friday joined the NFL in suggesting that Texas will be overlooked for future big events if lawmakers pass a bill requiring people to use bathrooms that correspond to the sex on their birth certificate.

READ MORE: Woman Found Dead In Street

NBA spokesman Mike Bass says an environment where people are treated “fairly and equally” weighs heavily when the league chooses host locations. Texas has three NBA teams and has hosted three All-Star Games since 2006.

READ MORE: Surveillance Video Shows Response After Four Children Shot In East Baltimore; Governor Criticizes Justice System As ‘Broken’ Amid Spike In Violence

Charlotte was originally supposed to host the All-Star Game on Sunday. But the NBA moved the game to New Orleans after North Carolina adopted its “bathroom bill” last year.

Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

MORE NEWS: For The Third Day In A Row, Some Baltimore City Schools Were Forced To Dismiss Early Due To Lack Of Air Conditioning