private void CheckPetAnimal(IAnimalLocation location, Farmer who)
 {
     foreach (KeyValuePair <long, FarmAnimal> kvp in location.Animals.Pairs)
     {
         FarmAnimal animal = kvp.Value;
         if (Parameters.AnimalType == AnimalType.Any || animal.GetAnimalType() == Parameters.AnimalType)
         {
             if (canPet(animal) && animal.GetCursorPetBoundingBox().Contains((int)who.position.X, (int)who.position.Y))
             {
                 animal.pet(who, false);
             }
         }
     }
 }