An official says water that actor Tom Selleck has been accused of stealing from a public hydrant in dry California was legally purchased.

Jay Spurgin, public works director for the city of Thousand Oaks, tells the Los Angeles Times that the water was paid for.

Records show a construction company received a city-approved water meter on the hydrant two years ago.

It’s unclear if Selleck or his employees bought the water from the company or another source.

The Calleguas Municipal Water District in Ventura County sued the “Magnum, P.I.” star, alleging that a tanker truck filled up at the hydrant and took it to Selleck’s 60-acre ranch more than a dozen times in the past two years.

The district announced a tentative settlement with Selleck on Thursday.