MinecraftForge/MinecraftForge — pull request #244 by ADreaming (2012-11-08 07:19:42+00:00)
Title: Allow for modders to decide whether or not players are position on entities similarly to pigs

The new pig steering code in 1.4.2 saw two basic changes: the addition of EntityAIControlledByPlayer, which is accessible to modders, and a snippet of code in EntityPlayer.updateRidden() that allows the player to constantly face forward while still being able to steer. That code, however, is specific to riding pigs. To fix this, I added one new method shouldRiderFaceForward() to EntityLiving, overrode it in EntityPig to return true, and had the pig-riding check in EntityPlayer.updateRidden() instead check for a living entity ridingEntity and a true return on the new method.