S.C. Code Ann. § 46-45-60
An ordinance of a unit of local government that makes the operation of an agricultural facility or an agricultural operation at an agricultural facility a nuisance or providing for abatement as a nuisance in derogation of this chapter is null and void. The provisions of this section do not apply whenever a nuisance results from the negligent, illegal, or improper operation of an agricultural facility. The provisions of this section do not apply whenever a nuisance results from an agricultural facility or agricultural operation at an agricultural facility located within the corporate limits of a city.