/// <summary>Warp a horse back to its home.</summary> /// <param name="horse">The horse to warp.</param> private void WarpHome(Horse horse) { Farm farm = Game1.getFarm(); Stable stable = farm.buildings.OfType <Stable>().FirstOrDefault(p => p.HorseId == horse.HorseId); Game1.warpCharacter(horse, farm, Vector2.Zero); stable?.grabHorse(); }