Removed unnecessary code

master
Mohammad Shoaib Khan 2022-08-14 20:19:09 +05:30
parent b4625ddfc8
commit d309844b28
1 changed files with 1 additions and 4 deletions

View File

@ -252,7 +252,7 @@ namespace stardew_access.Features
return false; return false;
} }
public static string? getFarmAnimalAt(GameLocation? location, int x, int y, bool onlyName = false) public static string? getFarmAnimalAt(GameLocation? location, int x, int y)
{ {
if (location == null) if (location == null)
return null; return null;
@ -281,9 +281,6 @@ namespace stardew_access.Features
int age = farmAnimals[i].age.Value; int age = farmAnimals[i].age.Value;
string type = farmAnimals[i].displayType; string type = farmAnimals[i].displayType;
if (onlyName)
return name;
return $"{name}, {type}, age {age}"; return $"{name}, {type}, age {age}";
} }
} }