Blendspace Snapping with Direction

This is an issue I still have in my project. If you print the direction variable, you’ll notice that it’s constantly switching somewhere between 5 degrees and -355 degrees, which is causing the blendspace to go from one end of it to the other.