The shooting happened Saturday night in the Stumpfield Mountain Road area.
Investigators found one person dead at the scene.
The Mariposa County Sheriff's Office said Miguel Alcazar was taken into custody after arriving at a local hospital with gunshot wounds.
He was booked into the Mariposa County Adult Detention Facility on murder charges.
Investigators previously reported a third person had been shot during the dispute. But Thursday, deputies said that person was not injured.
The sheriff's office said it was the second illegal grow in the area that deputies have been called to where weapons have been involved.