fixed getPlayerDirection to properly detect EAST, even when the players
yaw ranges between -180 and 180 instead of 0 and 360