Auto-Select Glitch Help

I was trying to play terraria after a good amount of time but as I finished my first house i realized there was a switch of tools that continously occured when i hovered over a block and left clicked. If i held a wood block and accidently left clicked on a another block my pick would come out to destroy it. This was also an issue with walls, when ever i used anything in a walled area it would switch to my torch from anywhere in my inventory. Is there anyway to resolve this glitch, i've tried uninstalling the modclient I was useing and Terraria itself, validating game files but it wouldn't fix.