RICHMOND, Va. (AP) - Virginia lawmakers have passed legislation designed to prevent localities from moving Civil War monuments.

The Daily Press reports ( that the measure passed the Senate this week on a 21-17 vote. Gov. Terry McAuliffe has not said whether he supports the bill.

A law passed in 1998 forbids local governments from removing or damaging war monuments.

But Republican Del. Charles Poindexter, the bill's sponsor, said a judge in a recent court case regarding the removal of the Confederate flag said the law protects only monuments raised since 1998.

Republican Sen. Thomas Garrett, who supported the bill, said removing monuments is "censoring" state history.

Democratic Sen. Mamie Lock, chairwoman of the legislative black caucus, said after the vote that the state shouldn't tell localities "how to remember the past."

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