Skip to content

Commit

Permalink
Fixed deprecated method call.
Browse files Browse the repository at this point in the history
  • Loading branch information
M3ales committed Nov 29, 2018
1 parent 55168ed commit 6faf42b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RelationshipTooltips/RelationshipTooltipsMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,13 @@ private void InitRelationships()
}
private IEnumerable<Character> GetLocationCharacters(GameLocation location, Event currentEvent = null)
{

if (location is AnimalHouse)
{
return (location as AnimalHouse).animals.Values
.Cast<Character>()
.Union(location.getCharacters())
.Union(location.getFarmers());
.Union(location.farmers.Cast<Character>());
}
if (currentEvent != null && Config.displayTooltipDuringEvent)
{
Expand All @@ -146,7 +147,7 @@ private IEnumerable<Character> GetLocationCharacters(GameLocation location, Even
}
return location.getCharacters()
.Cast<Character>()
.Union(location.getFarmers());
.Union(location.farmers.Cast<Character>());
}
/// <summary>
/// Attempts to get a Character under the mouse, allows for more specific filtering via specification of T other than Character.
Expand Down

0 comments on commit 6faf42b

Please sign in to comment.