Use rotationYaw to set quarry orientation.

This patch is intended to allow computercraft turtles to place buildcraft quarries. The base code computes the quarry orientation metadata from entityliving posX, posY, and posZ. When a turtle places a quarry, this technique seems to always return north regardless of the direction the turtle is facing. By using the entityliving rotationYaw instead, the quarry orientation will match the turtle orientation. The behavior when a real player places a quarry is preserved as well.

I'm new to buildcraft and minecraft, so I apologize if I've overlooked an important issue with this patch.